Skip to content

Commit

Permalink
Merge pull request #2032 from area17/restore-deprecated-laravel-versions
Browse files Browse the repository at this point in the history
[2.x] Restore deprecated laravel versions
  • Loading branch information
haringsrob authored Jan 3, 2023
2 parents 681a16d + 373dc2d commit 43f37c6
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 13 deletions.
26 changes: 25 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,44 @@ jobs:
matrix:
os: [ubuntu-latest]
php: [8.1, 8.0, 7.4, 7.3]
laravel: [9.*, 8.*]
laravel: [9.*, 8.*, 7.*, 6.*, 5.8.*]
dbal: [^2.12, ^3.0]
include:
- laravel: 9.*
testbench: 7.*
- laravel: 8.*
testbench: 6.*
- laravel: 7.*
testbench: 5.*
- laravel: 6.*
testbench: 4.*
- laravel: 5.8.*
testbench: 3.8.*
exclude:
- laravel: 9.*
php: 7.4
- laravel: 9.*
php: 7.3
- laravel: 8.*
php: 8.1
- laravel: 7.*
php: 8.1
- laravel: 7.*
php: 8.0
- laravel: 6.*
php: 8.1
- laravel: 6.*
php: 8.0
- laravel: 5.8.*
php: 8.1
- laravel: 5.8.*
php: 8.0
- dbal: ^3.0
laravel: 5.8.*
- dbal: ^3.0
laravel: 6.*
- dbal: ^3.0
laravel: 7.*
- dbal: ^2.12
laravel: 8.*
- dbal: ^2.12
Expand Down
16 changes: 8 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,27 +27,27 @@
"ext-json": "*",
"ext-pdo": "*",
"astrotomic/laravel-translatable": "^11.5",
"cartalyst/tags": "^11.0|^12.0",
"cartalyst/tags": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0",
"doctrine/dbal": "^2.12|^3.0",
"guzzlehttp/guzzle": "^6.2|^7.0",
"imgix/imgix-php": "^3.0",
"laravel/framework": "^8.0|^9.0",
"laravel/socialite": "^5.0",
"laravel/ui": "^3.0|^4.0",
"laravel/framework": "~5.6|~5.7|~5.8|^6.0|^7.0|^8.0|^9.0",
"laravel/socialite": "^4.2|^5.0",
"laravel/ui": "^1.0|^2.0|^3.0|^4.0",
"league/flysystem-aws-s3-v3": "^1.0|^2.0|^3.0",
"league/glide-laravel": "^1.0",
"matthewbdaly/laravel-azure-storage": "^1.3|^2.0",
"myclabs/php-enum": "^1.5",
"pragmarx/google2fa-qrcode": "^1.0|^2.0",
"spatie/laravel-activitylog": "^3.0|^4.0",
"spatie/laravel-analytics": "^3.0|^4.0",
"spatie/laravel-activitylog": "^2.5|^3.2|^4.0",
"spatie/laravel-analytics": "^3.6|^4.0",
"spatie/once": "^2.0|^3.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.16|^3.0",
"kalnoy/nestedset": "^5.0|^6.0",
"nunomaduro/collision": "^5.0|^6.0",
"orchestra/testbench": "^6.0|^7.0",
"nunomaduro/collision": "^3.0|^4.2|^5.0|^6.0",
"orchestra/testbench": "~3.3|~3.4|~3.5|~3.6|~3.7|~3.8|^4.0|^5.0|^6.0|^7.0",
"phpunit/phpunit": "~5.0|~6.0|~7.0|~8.0|~9.0",
"chillerlan/php-qrcode": "~2.0|~3.0|~4.0"
},
Expand Down
8 changes: 4 additions & 4 deletions src/Http/Controllers/Admin/ModuleController.php
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ public function show($id, $submoduleId = null)
*/
public function edit($id, $submoduleId = null)
{
$parameter = Str::singular(Str::afterLast($this->moduleName, '.'));
$parameter = Str::singular(str_after_last($this->moduleName, '.'));
$id = $this->request->route()->parameter($parameter, $id);
$item = $this->repository->getById($id, $this->formWith, $this->formWithCount);

Expand Down Expand Up @@ -529,7 +529,7 @@ public function create($parentModuleId = null)
*/
public function update($id, $submoduleId = null)
{
$parameter = Str::singular(Str::afterLast($this->moduleName, '.'));
$parameter = Str::singular(str_after_last($this->moduleName, '.'));
$id = $this->request->route()->parameter($parameter, $id);
$item = $this->repository->getById($id, $this->formWith, $this->formWithCount);

Expand Down Expand Up @@ -727,7 +727,7 @@ public function bulkPublish()
*/
public function duplicate($id, $submoduleId = null)
{
$parameter = Str::singular(Str::afterLast($this->moduleName, '.'));
$parameter = Str::singular(str_after_last($this->moduleName, '.'));
$id = $this->request->route()->parameter($parameter, $id);
$item = $this->repository->getById($id, $this->formWith, $this->formWithCount);

Expand Down Expand Up @@ -757,7 +757,7 @@ public function duplicate($id, $submoduleId = null)
*/
public function destroy($id, $submoduleId = null)
{
$parameter = Str::singular(Str::afterLast($this->moduleName, '.'));
$parameter = Str::singular(str_after_last($this->moduleName, '.'));
$id = $this->request->route()->parameter($parameter, $id);
$item = $this->repository->getById($id, $this->formWith, $this->formWithCount);

Expand Down

0 comments on commit 43f37c6

Please sign in to comment.