Skip to content

Commit

Permalink
fix: allow to use with laravel 9
Browse files Browse the repository at this point in the history
  • Loading branch information
brokeyourbike committed Apr 6, 2022
1 parent 5cdee6f commit c240928
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/tests.yml
Expand Up @@ -32,12 +32,14 @@ jobs:

- name: Upload coverage
uses: codecov/codecov-action@v2
continue-on-error: true
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml

- name: Upload coverage to codeclimate
uses: paambaati/codeclimate-action@v3.0.0
continue-on-error: true
env:
CC_TEST_REPORTER_ID: ${{ secrets.CODECLIMATE_TOKEN }}
with:
Expand Down
6 changes: 4 additions & 2 deletions README.md
Expand Up @@ -3,10 +3,9 @@
[![Latest Stable Version](https://img.shields.io/github/v/release/brokeyourbike/country-casts-laravel)](https://github.com/brokeyourbike/country-casts-laravel/releases)
[![Total Downloads](https://poser.pugx.org/brokeyourbike/country-casts-laravel/downloads)](https://packagist.org/packages/brokeyourbike/country-casts-laravel)
[![License: MPL-2.0](https://img.shields.io/badge/license-MPL--2.0-purple.svg)](https://github.com/brokeyourbike/country-casts-laravel/blob/main/LICENSE)

[![tests](https://github.com/brokeyourbike/country-casts-laravel/actions/workflows/tests.yml/badge.svg)](https://github.com/brokeyourbike/country-casts-laravel/actions/workflows/tests.yml)
[![Maintainability](https://api.codeclimate.com/v1/badges/468c99a01827c36b271c/maintainability)](https://codeclimate.com/github/brokeyourbike/country-casts-laravel/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/468c99a01827c36b271c/test_coverage)](https://codeclimate.com/github/brokeyourbike/country-casts-laravel/test_coverage)
[![tests](https://github.com/brokeyourbike/country-casts-laravel/actions/workflows/tests.yml/badge.svg)](https://github.com/brokeyourbike/country-casts-laravel/actions/workflows/tests.yml)

Cast country code attributes from ISO3 to ISO2

Expand All @@ -31,5 +30,8 @@ class Order extends Model
}
```

## Authors
- [Ivan Stasiuk](https://github.com/brokeyourbike) | [Twitter](https://twitter.com/brokeyourbike) | [stasi.uk](https://stasi.uk)

## License
[Mozilla Public License v2.0](https://github.com/brokeyourbike/country-casts-laravel/blob/main/LICENSE)
11 changes: 8 additions & 3 deletions composer.json
Expand Up @@ -23,13 +23,18 @@
"minimum-stability": "stable",
"require": {
"php": "^8.0",
"illuminate/contracts": "^8",
"illuminate/contracts": "^8|^9",
"league/iso3166": "^4.0"
},
"require-dev": {
"bamarni/composer-bin-plugin": "^1.4",
"phpunit/phpunit": "^9.5",
"illuminate/database": "^8"
"illuminate/database": "^8|^9"
},
"version": "0.1.0"
"version": "0.1.0",
"config": {
"allow-plugins": {
"bamarni/composer-bin-plugin": true
}
}
}

0 comments on commit c240928

Please sign in to comment.