Skip to content

Commit 148565a

Browse files
committed
bump to laravel 12
1 parent ae31971 commit 148565a

24 files changed

+3998
-1312
lines changed

app/Models/User.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@
99

1010
class User extends Authenticatable
1111
{
12+
/** @use HasFactory<\Database\Factories\UserFactory> */
1213
use HasFactory, Notifiable;
1314

1415
/**
1516
* The attributes that are mass assignable.
1617
*
17-
* @var array<int, string>
18+
* @var list<string>
1819
*/
1920
protected $fillable = [
2021
'name',
@@ -25,7 +26,7 @@ class User extends Authenticatable
2526
/**
2627
* The attributes that should be hidden for serialization.
2728
*
28-
* @var array<int, string>
29+
* @var list<string>
2930
*/
3031
protected $hidden = [
3132
'password',

artisan

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env php
22
<?php
33

4+
use Illuminate\Foundation\Application;
45
use Symfony\Component\Console\Input\ArgvInput;
56

67
define('LARAVEL_START', microtime(true));
@@ -9,7 +10,9 @@ define('LARAVEL_START', microtime(true));
910
require __DIR__.'/vendor/autoload.php';
1011

1112
// Bootstrap Laravel and handle the command...
12-
$status = (require_once __DIR__.'/bootstrap/app.php')
13-
->handleCommand(new ArgvInput);
13+
/** @var Application $app */
14+
$app = require_once __DIR__.'/bootstrap/app.php';
15+
16+
$status = $app->handleCommand(new ArgvInput);
1417

1518
exit($status);

composer.json

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,27 @@
11
{
2+
"$schema": "https://getcomposer.org/schema.json",
23
"name": "laravel/laravel",
34
"type": "project",
45
"description": "The skeleton application for the Laravel framework.",
5-
"keywords": ["laravel", "framework"],
6+
"keywords": [
7+
"laravel",
8+
"framework"
9+
],
610
"license": "MIT",
711
"require": {
812
"php": "^8.2",
9-
"laravel/framework": "^11.9",
10-
"laravel/tinker": "^2.9"
13+
"laravel/framework": "^12.0",
14+
"laravel/tinker": "^2.10.1"
1115
},
1216
"require-dev": {
1317
"fakerphp/faker": "^1.23",
18+
"laravel/pail": "^1.2.2",
1419
"laravel/pint": "^1.13",
15-
"laravel/sail": "^1.26",
20+
"laravel/sail": "^1.41",
1621
"mockery/mockery": "^1.6",
17-
"nunomaduro/collision": "^8.0",
18-
"phpunit/phpunit": "^11.0.1"
22+
"nunomaduro/collision": "^8.6",
23+
"pestphp/pest": "^3.8",
24+
"pestphp/pest-plugin-laravel": "^3.2"
1925
},
2026
"autoload": {
2127
"psr-4": {
@@ -44,6 +50,14 @@
4450
"@php artisan key:generate --ansi",
4551
"@php -r \"file_exists('database/database.sqlite') || touch('database/database.sqlite');\"",
4652
"@php artisan migrate --graceful --ansi"
53+
],
54+
"dev": [
55+
"Composer\\Config::disableProcessTimeout",
56+
"npx concurrently -c \"#93c5fd,#c4b5fd,#fb7185,#fdba74\" \"php artisan serve\" \"php artisan queue:listen --tries=1\" \"php artisan pail --timeout=0\" \"npm run dev\" --names=server,queue,logs,vite"
57+
],
58+
"test": [
59+
"@php artisan config:clear --ansi",
60+
"@php artisan test"
4761
]
4862
},
4963
"extra": {
@@ -62,4 +76,4 @@
6276
},
6377
"minimum-stability": "stable",
6478
"prefer-stable": true
65-
}
79+
}

0 commit comments

Comments
 (0)