Updated Laravel to 11.
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
@@ -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
|
||||
|
@@ -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": {
|
||||
|
2580
app/application/composer.lock
generated
2580
app/application/composer.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -63,5 +63,4 @@ return [
|
||||
'verify_csrf_token' => App\Http\Middleware\VerifyCsrfToken::class,
|
||||
'encrypt_cookies' => App\Http\Middleware\EncryptCookies::class,
|
||||
],
|
||||
|
||||
];
|
||||
|
Reference in New Issue
Block a user