Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Commit

Permalink
Laravel 10.x Compatibility (#120)
Browse files Browse the repository at this point in the history
Co-authored-by: Pascal Baljet <[email protected]>
  • Loading branch information
laravel-shift and pascalbaljet authored Feb 21, 2023
1 parent 656479c commit 21086aa
Show file tree
Hide file tree
Showing 22 changed files with 1,737 additions and 1,727 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
strategy:
matrix:
php-version:
- "8.0"
- "8.1"
node-version:
- 16

Expand Down
13 changes: 10 additions & 3 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [8.1, 8.0]
laravel: [9.*]
php: [8.2, 8.1]
laravel: ["9", "10"]
dependency-version: [prefer-lowest, prefer-stable]

name: P${{ matrix.php }} - ${{ matrix.dependency-version }}
name: L${{ matrix.laravel}} - P${{ matrix.php }} - ${{ matrix.dependency-version }}

steps:
- name: Checkout code
Expand Down Expand Up @@ -53,6 +53,13 @@ jobs:
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, mysql, mysqli, pdo_mysql
coverage: none

- name: Downgrade to Laravel 9
run: |
cd app
rm composer.json
mv composer-l9.json composer.json
if: "matrix.laravel == '9'"

- name: Prepare demo app
run: |
cd app
Expand Down
76 changes: 76 additions & 0 deletions app/composer-l9.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
{
"name": "laravel/laravel",
"type": "project",
"description": "The Laravel Framework.",
"keywords": [
"framework",
"laravel"
],
"license": "MIT",
"require": {
"php": "^8.1|^8.2",
"guzzlehttp/guzzle": "^7.2",
"inertiajs/inertia-laravel": "^0.6.9",
"laravel/breeze": "^1.9",
"laravel/dusk": "^6.24",
"laravel/framework": "^9.37",
"laravel/sanctum": "^2.8",
"laravel/tinker": "^2.7",
"protonemedia/inertiajs-tables-laravel-query-builder": "@dev",
"spatie/laravel-query-builder": "^5.0",
"tightenco/ziggy": "^1.0"
},
"require-dev": {
"fakerphp/faker": "^1.9.1",
"friendsofphp/php-cs-fixer": "^3.8",
"mockery/mockery": "^1.4.4",
"nunomaduro/collision": "^6.1",
"phpunit/phpunit": "^9.5.10",
"spatie/laravel-ignition": "^1.0"
},
"repositories": [
{
"type": "path",
"url": "../"
}
],
"autoload": {
"psr-4": {
"App\\": "app/",
"Database\\Factories\\": "database/factories/",
"Database\\Seeders\\": "database/seeders/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"scripts": {
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"@php artisan package:discover --ansi"
],
"post-update-cmd": [
"@php artisan vendor:publish --tag=laravel-assets --ansi --force"
],
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"@php artisan key:generate --ansi"
]
},
"extra": {
"laravel": {
"dont-discover": []
}
},
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true
},
"minimum-stability": "dev",
"prefer-stable": true
}
14 changes: 7 additions & 7 deletions app/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
],
"license": "MIT",
"require": {
"php": "^8.0.2",
"php": "^8.1|^8.2",
"guzzlehttp/guzzle": "^7.2",
"inertiajs/inertia-laravel": "^0.6.3",
"inertiajs/inertia-laravel": "^0.6.9",
"laravel/breeze": "^1.9",
"laravel/dusk": "^6.24",
"laravel/framework": "^9.19.0",
"laravel/sanctum": "^2.8",
"laravel/dusk": "^7.0",
"laravel/framework": "^10.0",
"laravel/sanctum": "^2.8|^3.0",
"laravel/tinker": "^2.7",
"protonemedia/inertiajs-tables-laravel-query-builder": "@dev",
"spatie/laravel-query-builder": "^5.0",
Expand All @@ -26,7 +26,7 @@
"mockery/mockery": "^1.4.4",
"nunomaduro/collision": "^6.1",
"phpunit/phpunit": "^9.5.10",
"spatie/laravel-ignition": "^1.0"
"spatie/laravel-ignition": "^1.0|^2.0"
},
"repositories": [
{
Expand Down Expand Up @@ -73,4 +73,4 @@
},
"minimum-stability": "dev",
"prefer-stable": true
}
}
Loading

0 comments on commit 21086aa

Please sign in to comment.