File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99use Illuminate \Database \Eloquent \Model ;
1010use Illuminate \Database \Eloquent \Relations \BelongsToMany ;
1111use Illuminate \Foundation \Auth \User as Authenticatable ;
12+ use Illuminate \Notifications \Notifiable ;
1213use Illuminate \Support \Collection ;
1314use Spatie \Permission \Traits \HasRoles ;
1415use Workbench \Database \Factories \UserFactory ;
1516
1617class User extends Authenticatable implements FilamentUser, HasTenants
1718{
18- use HasFactory, HasRoles;
19+ use HasFactory, HasRoles, Notifiable ;
1920
21+ /**
22+ * The attributes that are mass assignable.
23+ *
24+ * @var array<int, string>
25+ */
2026 protected $ fillable = [
2127 'name ' ,
2228 'email ' ,
2329 'password ' ,
2430 ];
2531
32+ /**
33+ * The attributes that should be hidden for serialization.
34+ *
35+ * @var array<int, string>
36+ */
2637 protected $ hidden = [
2738 'password ' ,
2839 'remember_token ' ,
2940 ];
3041
42+ /**
43+ * The attributes that should be cast.
44+ *
45+ * @var array<string, string>
46+ */
3147 protected $ casts = [
3248 'email_verified_at ' => 'datetime ' ,
3349 'password ' => 'hashed ' ,
3450 ];
3551
36- protected static function newFactory ()
52+ protected static function newFactory (): UserFactory
3753 {
3854 return UserFactory::new ();
3955 }
You can’t perform that action at this time.
0 commit comments