mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-05-05 10:11:25 -05:00
update: laravel
- Laravel 11 introduces a new default application structure with fewer default files. Namely, new Laravel applications contain fewer service providers, middleware, and configuration files. However, it is not recommend that Laravel 10 applications upgrading to Laravel 11 attempt to migrate their application structure, as Laravel 11 has been carefully tuned to also support the Laravel 10 application structure.
This commit is contained in:
+18
-15
@@ -80,23 +80,26 @@ class UserPrivacy extends Model
|
||||
protected $table = 'user_privacy';
|
||||
|
||||
/**
|
||||
* The Attributes That Should Be Cast To Native Values.
|
||||
* Get the attributes that should be cast.
|
||||
*
|
||||
* @var array<string, string>
|
||||
* @return array<string, string>
|
||||
*/
|
||||
protected $casts = [
|
||||
'json_profile_groups' => 'array',
|
||||
'json_torrent_groups' => 'array',
|
||||
'json_forum_groups' => 'array',
|
||||
'json_bon_groups' => 'array',
|
||||
'json_comment_groups' => 'array',
|
||||
'json_wishlist_groups' => 'array',
|
||||
'json_follower_groups' => 'array',
|
||||
'json_achievement_groups' => 'array',
|
||||
'json_rank_groups' => 'array',
|
||||
'json_request_groups' => 'array',
|
||||
'json_other_groups' => 'array',
|
||||
];
|
||||
protected function casts(): array
|
||||
{
|
||||
return [
|
||||
'json_profile_groups' => 'array',
|
||||
'json_torrent_groups' => 'array',
|
||||
'json_forum_groups' => 'array',
|
||||
'json_bon_groups' => 'array',
|
||||
'json_comment_groups' => 'array',
|
||||
'json_wishlist_groups' => 'array',
|
||||
'json_follower_groups' => 'array',
|
||||
'json_achievement_groups' => 'array',
|
||||
'json_rank_groups' => 'array',
|
||||
'json_request_groups' => 'array',
|
||||
'json_other_groups' => 'array',
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Belongs To A User.
|
||||
|
||||
Reference in New Issue
Block a user