Skip to content

Commit

Permalink
Add support for Laravel 8
Browse files Browse the repository at this point in the history
  • Loading branch information
sebdesign committed Sep 7, 2020
1 parent 8cf726a commit a11e7f7
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 21 deletions.
2 changes: 2 additions & 0 deletions .styleci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
preset: laravel

risky: true

disabled:
- single_class_element_per_statement
11 changes: 10 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,25 @@ matrix:
include:
# Laravel 7.x
- php: 7.2
env: LARAVEL=^7.0 TESTBENCH=^5.0 PHPUNIT=~8.5
- php: 7.3
env: LARAVEL=^7.0 TESTBENCH=^5.0 PHPUNIT=~8.5
- php: 7.4
env: LARAVEL=^7.0 TESTBENCH=^5.0 PHPUNIT=~8.5
# Laravel 8.x
- php: 7.3
env: LARAVEL=^8.0 TESTBENCH=^6.0 PHPUNIT=~9.3
- php: 7.4
env: LARAVEL=^8.0 TESTBENCH=^6.0 PHPUNIT=~9.3

+before_install:
before_install:
- sudo apt-get update
- sudo apt-get -y install graphviz

before_script:
- phpenv config-rm xdebug.ini
- composer self-update --stable --no-interaction
- composer require orchestra/testbench:$TESTBENCH orchestra/database:$ORCHESTRA_DATABASE phpunit/phpunit:$PHPUNIT --no-update --no-interaction --dev

install:
- travis_retry composer install --no-suggest --no-interaction
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All Notable changes to `laravel-state-machine` will be documented in this file
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [v3.1.0] - 2020-09-07

- Add support for Laravel 8

## [v3.0.2] - 2020-07-31

- Remove bool typehint from $soft parameter
Expand Down
13 changes: 2 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,7 @@ This is a Laravel service provider for [winzou/state-machine](https://github.com

You can install the package via composer. This package requires Laravel 7.0 or higher.

In your composer.json, add the following section:

```json
"repositories": [
{
"type": "vcs",
"url": "https://github.com/sebdesign/state-machine"
}
]
```
For previous Laravel versions, please check the [compatibility table](#versions).

Then require the package using the command-line interface:

Expand All @@ -35,7 +26,7 @@ If you need to install this package in older Laravel installations, use the tabl

| Package | Laravel | PHP |
| :--- | :--- | :--- |
| **^3.0** | `^7.0` | <code>^7.2.5</code> |
| **^3.0** | `^7.0 - ^8.0` | <code>^7.2.5</code> |
| **^2.0** | `5.5.* - ^6.0` | <code>^7.0</code> |
| **^1.0** | `5.1.* - 5.8.*` | <code>^5.5.9 &#124; ^7.0</code> |

Expand Down
12 changes: 3 additions & 9 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,15 @@
],
"require": {
"php": "^7.2.5",
"illuminate/support": "^7.0",
"illuminate/support": "^7.0 | ^8.0",
"winzou/state-machine": "^0.4.0"
},
"require-dev": {
"mockery/mockery": "^1.3.1",
"orchestra/testbench": "^5.0",
"phpunit/phpunit": "^8.4 | ^9.0",
"orchestra/testbench": "^5.0 | ^6.0",
"phpunit/phpunit": "^8.5 | ^9.3",
"symfony/process": "^4.3 | ^5.0"
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/sebdesign/state-machine"
}
],
"autoload": {
"psr-4": {
"Sebdesign\\SM\\": "src"
Expand Down

0 comments on commit a11e7f7

Please sign in to comment.