Skip to content

Commit 236f929

Browse files
author
ankitcodes4u
committed
reverting User workbench
1 parent 23a5491 commit 236f929

1 file changed

Lines changed: 18 additions & 2 deletions

File tree

workbench/app/Models/User.php

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,31 +9,47 @@
99
use Illuminate\Database\Eloquent\Model;
1010
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
1111
use Illuminate\Foundation\Auth\User as Authenticatable;
12+
use Illuminate\Notifications\Notifiable;
1213
use Illuminate\Support\Collection;
1314
use Spatie\Permission\Traits\HasRoles;
1415
use Workbench\Database\Factories\UserFactory;
1516

1617
class 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
}

0 commit comments

Comments
 (0)