Skip to content

Commit a34c060

Browse files
authored
Upgrade to Laravel 11.x (#95)
1 parent 360340e commit a34c060

7 files changed

+24
-10
lines changed

.github/workflows/run-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ jobs:
99
fail-fast: false
1010
matrix:
1111
os: [ubuntu-latest]
12-
php: [8.3, 8.2, 8.1]
13-
laravel: [10.*]
12+
php: [8.3, 8.2]
13+
laravel: [11.x]
1414
stability: [prefer-lowest, prefer-stable]
1515

1616
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}

composer.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,21 @@
2424
"filament/filament": "^3.2.23",
2525
"filament/spatie-laravel-settings-plugin": "^3.2",
2626
"guzzlehttp/guzzle": "^7.8",
27-
"illuminate/console": "^10.0",
28-
"illuminate/database": "^10.0",
29-
"illuminate/events": "^10.0",
30-
"illuminate/queue": "^10.0",
31-
"illuminate/support": "^10.0",
27+
"illuminate/console": "^11.0",
28+
"illuminate/database": "^11.0",
29+
"illuminate/events": "^11.0",
30+
"illuminate/queue": "^11.0",
31+
"illuminate/support": "^11.0",
3232
"nesbot/carbon": "^2.70",
3333
"spatie/laravel-query-builder": "^5.5",
3434
"spatie/laravel-settings": "^3.2",
3535
"timacdonald/json-api": "^v1.0.0-beta.4",
3636
"twig/twig": "^3.0"
3737
},
3838
"require-dev": {
39-
"orchestra/testbench": "^8.27.1",
40-
"pestphp/pest": "^2.13",
41-
"pestphp/pest-plugin-laravel": "^2.2",
39+
"orchestra/testbench": "^9.5.1",
40+
"pestphp/pest": "^3.2",
41+
"pestphp/pest-plugin-laravel": "^3.0",
4242
"spatie/laravel-ray": "^1.32"
4343
},
4444
"autoload": {

database/migrations/2015_06_10_122216_AlterTableComponentsDropUserIdColumn.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
public function up()
1313
{
1414
Schema::table('components', function (Blueprint $table) {
15+
$table->dropIndex('components_user_id_index');
1516
$table->dropColumn('user_id');
1617
});
1718
}

database/migrations/2015_06_10_122229_AlterTableIncidentsDropUserIdColumn.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
public function up()
1313
{
1414
Schema::table('incidents', function (Blueprint $table) {
15+
$table->dropIndex('incidents_user_id_index');
1516
$table->dropColumn('user_id');
1617
});
1718
}

database/migrations/2016_04_05_142933_create_sessions_table.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
*/
1414
public function up()
1515
{
16+
if (Schema::hasTable('sessions')) {
17+
return;
18+
}
19+
1620
Schema::create('sessions', function (Blueprint $table) {
1721
$table->string('id')->primary();
1822
$table->foreignId('user_id')->nullable()->index();

database/migrations/2016_06_05_091615_create_cache_table.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
*/
1414
public function up()
1515
{
16+
if (Schema::hasTable('cache')) {
17+
return;
18+
}
19+
1620
Schema::create('cache', function (Blueprint $table) {
1721
$table->string('key')->unique();
1822
$table->text('value');

workbench/database/migrations/2015_05_24_210939_create_jobs_table.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
*/
1212
public function up()
1313
{
14+
if (Schema::hasTable('jobs')) {
15+
return;
16+
}
17+
1418
Schema::create('jobs', function (Blueprint $table) {
1519

1620
$table->bigIncrements('id');

0 commit comments

Comments
 (0)