Skip to content

Commit

Permalink
Merge pull request #9 from cesargb/l8
Browse files Browse the repository at this point in the history
Support to Laravel 8
  • Loading branch information
cesargb authored Sep 9, 2020
2 parents 827a849 + d8b85c6 commit ddeb36a
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 33 deletions.
42 changes: 16 additions & 26 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,47 +3,37 @@ language: php
matrix:
include:
- php: '7.2'
env: LARAVEL='5.5.*' ORCHESTRA="3.5.*" COMPOSER_FLAGS='--prefer-stable'
env: LARAVEL='^6.0' ORCHESTRA="4.*.*" COMPOSER_FLAGS='--prefer-lowest' COMPOSER='composer-prel8.json'
- php: '7.2'
env: LARAVEL='5.8.*' ORCHESTRA="3.8.*" COMPOSER_FLAGS='--prefer-lowest'
env: LARAVEL='^6.0' ORCHESTRA="4.*.*" COMPOSER_FLAGS='--prefer-stable' COMPOSER='composer-prel8.json'
- php: '7.2'
env: LARAVEL='5.8.*' ORCHESTRA="3.8.*" COMPOSER_FLAGS='--prefer-stable'
env: LARAVEL='^7.0' ORCHESTRA="5.*.*" COMPOSER_FLAGS='--prefer-lowest' COMPOSER='composer-prel8.json'
- php: '7.2'
env: LARAVEL='^6.0' ORCHESTRA="4.*.*" COMPOSER_FLAGS='--prefer-lowest'
- php: '7.2'
env: LARAVEL='^6.0' ORCHESTRA="4.*.*" COMPOSER_FLAGS='--prefer-stable'
- php: '7.2'
env: LARAVEL='^7.0' ORCHESTRA="5.*.*" COMPOSER_FLAGS='--prefer-lowest'
- php: '7.2'
env: LARAVEL='^7.0' ORCHESTRA="5.*.*" COMPOSER_FLAGS='--prefer-stable'
env: LARAVEL='^7.0' ORCHESTRA="5.*.*" COMPOSER_FLAGS='--prefer-stable' COMPOSER='composer-prel8.json'
- php: '7.3'
env: LARAVEL='5.5.*' ORCHESTRA="3.5.*" COMPOSER_FLAGS='--prefer-stable'
env: LARAVEL='^6.0' ORCHESTRA="4.*.*" COMPOSER_FLAGS='--prefer-lowest' COMPOSER='composer-prel8.json'
- php: '7.3'
env: LARAVEL='5.8.*' ORCHESTRA="3.8.*" COMPOSER_FLAGS='--prefer-lowest'
env: LARAVEL='^6.0' ORCHESTRA="4.*.*" COMPOSER_FLAGS='--prefer-stable' COMPOSER='composer-prel8.json'
- php: '7.3'
env: LARAVEL='5.8.*' ORCHESTRA="3.8.*" COMPOSER_FLAGS='--prefer-stable'
env: LARAVEL='^7.0' ORCHESTRA="5.*.*" COMPOSER_FLAGS='--prefer-lowest' COMPOSER='composer-prel8.json'
- php: '7.3'
env: LARAVEL='^6.0' ORCHESTRA="4.*.*" COMPOSER_FLAGS='--prefer-lowest'
env: LARAVEL='^7.0' ORCHESTRA="5.*.*" COMPOSER_FLAGS='--prefer-stable' COMPOSER='composer-prel8.json'
- php: '7.3'
env: LARAVEL='^6.0' ORCHESTRA="4.*.*" COMPOSER_FLAGS='--prefer-stable'
env: LARAVEL='^8.0' ORCHESTRA="6.*.*" COMPOSER_FLAGS='--prefer-lowest'
- php: '7.3'
env: LARAVEL='^7.0' ORCHESTRA="5.*.*" COMPOSER_FLAGS='--prefer-lowest'
- php: '7.3'
env: LARAVEL='^7.0' ORCHESTRA="5.*.*" COMPOSER_FLAGS='--prefer-stable'
- php: '7.4'
env: LARAVEL='5.5.*' ORCHESTRA="3.5.*" COMPOSER_FLAGS='--prefer-stable'
env: LARAVEL='^8.0' ORCHESTRA="6.*.*" COMPOSER_FLAGS='--prefer-stable'
- php: '7.4'
env: LARAVEL='5.8.*' ORCHESTRA="3.8.*" COMPOSER_FLAGS='--prefer-lowest'
env: LARAVEL='^6.0' ORCHESTRA="4.*.*" COMPOSER_FLAGS='--prefer-lowest' COMPOSER='composer-prel8.json'
- php: '7.4'
env: LARAVEL='5.8.*' ORCHESTRA="3.8.*" COMPOSER_FLAGS='--prefer-stable'
env: LARAVEL='^6.0' ORCHESTRA="4.*.*" COMPOSER_FLAGS='--prefer-stable' COMPOSER='composer-prel8.json'
- php: '7.4'
env: LARAVEL='^6.0' ORCHESTRA="4.*.*" COMPOSER_FLAGS='--prefer-lowest'
env: LARAVEL='^7.0' ORCHESTRA="5.*.*" COMPOSER_FLAGS='--prefer-lowest' COMPOSER='composer-prel8.json'
- php: '7.4'
env: LARAVEL='^6.0' ORCHESTRA="4.*.*" COMPOSER_FLAGS='--prefer-stable'
env: LARAVEL='^7.0' ORCHESTRA="5.*.*" COMPOSER_FLAGS='--prefer-stable' COMPOSER='composer-prel8.json'
- php: '7.4'
env: LARAVEL='^7.0' ORCHESTRA="5.*.*" COMPOSER_FLAGS='--prefer-lowest'
env: LARAVEL='^8.0' ORCHESTRA="6.*.*" COMPOSER_FLAGS='--prefer-lowest'
- php: '7.4'
env: LARAVEL='^7.0' ORCHESTRA="5.*.*" COMPOSER_FLAGS='--prefer-stable' RUN_PHPCS=1
env: LARAVEL='^8.0' ORCHESTRA="6.*.*" COMPOSER_FLAGS='--prefer-stable' RUN_PHPCS=1

before_script:
- travis_retry composer self-update
Expand Down
54 changes: 54 additions & 0 deletions composer-prel8.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"name": "cesargb/laravel-cascade-delete",
"description": "Cascading eliminations implemented in polymorphic relationships for the Laravel apps",
"keywords": [
"laravel",
"elocuent",
"cascade",
"delete",
"polymorphic",
"relation",
"residual"
],
"type": "library",
"require": {
"php": "^7.1",
"illuminate/console": "^6.0|^7.0",
"illuminate/database": "^6.0|^7.0",
"illuminate/events": "^6.0|^7.0",
"illuminate/support": "^6.0|^7.0"
},
"require-dev": {
"phpunit/phpunit": "^6.0|^7.0|^8.0",
"orchestra/testbench": "^4.0|^5.0",
"friendsofphp/php-cs-fixer": "^2.14"
},
"autoload": {
"psr-4": {
"Cesargb\\Database\\Support\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"scripts": {
"test": "vendor/bin/phpunit --colors=always --coverage-text"
},
"license": "MIT",
"authors": [
{
"name": "Cesar Garcia",
"email": "[email protected]"
}
],
"minimum-stability": "stable",
"extra": {
"laravel": {
"providers": [
"Cesargb\\Database\\Support\\CascadeDeleteServiceProvider"
]
}
}
}
15 changes: 8 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,16 @@
"type": "library",
"require": {
"php": "^7.1",
"illuminate/console": "~5.5.45|~5.8|^6.0|^7.0",
"illuminate/database": "~5.5.45|~5.8|^6.0|^7.0",
"illuminate/events": "~5.5.45|~5.8|^6.0|^7.0",
"illuminate/support": "~5.5.45|~5.8|^6.0|^7.0"
"illuminate/console": "^6.0|^7.0|^8.0",
"illuminate/database": "^6.0|^7.0|^8.0",
"illuminate/events": "^6.0|^7.0|^8.0",
"illuminate/support": "^6.0|^7.0|^8.0"
},
"require-dev": {
"phpunit/phpunit": "^6.0|^7.0|^8.0",
"orchestra/testbench": "^3.5|^3.8|^4.0|^5.0",
"friendsofphp/php-cs-fixer": "^2.14"
"phpunit/phpunit": "^7.0|^8.0",
"orchestra/testbench": "^4.0|^5.0|^6.0",
"friendsofphp/php-cs-fixer": "^2.14",
"laravel/legacy-factories": "^1.0.4"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit ddeb36a

Please sign in to comment.