Updated Laravel to 11.

This commit is contained in:
2024-04-25 20:58:52 +05:00
parent 8794b8af4e
commit e059f09e2f
7 changed files with 1521 additions and 1162 deletions

View File

@@ -29,13 +29,16 @@ final class CaptchaLog extends Model
];
/**
* The attributes that should be cast.
* Get the attributes that should be cast.
*
* @var array
* @return array<string, string>
*/
protected $casts = [
'type' => CaptchaLogType::class,
];
protected function casts(): array
{
return [
'type' => CaptchaLogType::class,
];
}
public function scopeLatest(Builder $query): Builder
{

View File

@@ -51,15 +51,18 @@ final class User extends Authenticatable
];
/**
* The attributes that should be cast.
* Get the attributes that should be cast.
*
* @var array<string, string>
* @return array<string, string>
*/
protected $casts = [
'email_verified_at' => 'datetime',
'is_active' => 'boolean',
'lang' => Lang::class,
];
protected function casts(): array
{
return [
'email_verified_at' => 'datetime',
'is_active' => 'boolean',
'lang' => Lang::class,
];
}
/**
* Return the user's roles

View File

@@ -5,10 +5,10 @@
"keywords": ["framework", "laravel"],
"license": "MIT",
"require": {
"php": "^8.2",
"php": "^8.3",
"guzzlehttp/guzzle": "^7.2",
"laravel/framework": "^10.0",
"laravel/sanctum": "^3.2",
"laravel/framework": "^11.0",
"laravel/sanctum": "^4.0",
"laravel/tinker": "^2.8"
},
"require-dev": {
@@ -17,8 +17,8 @@
"laravel/pint": "^1.0",
"laravel/sail": "^1.18",
"mockery/mockery": "^1.4.4",
"nunomaduro/collision": "^7.0",
"phpunit/phpunit": "^10.0",
"nunomaduro/collision": "^8.1",
"phpunit/phpunit": "^10.5",
"spatie/laravel-ignition": "^2.0"
},
"autoload": {

File diff suppressed because it is too large Load Diff

View File

@@ -63,5 +63,4 @@ return [
'verify_csrf_token' => App\Http\Middleware\VerifyCsrfToken::class,
'encrypt_cookies' => App\Http\Middleware\EncryptCookies::class,
],
];