| 1 | <?php |
||
| 12 | class Admin extends Authenticatable |
||
| 13 | { |
||
| 14 | use HasFactory, HasRoles, SoftDeletes, Notifiable; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * The attributes that are mass assignable. |
||
| 18 | * |
||
| 19 | * @var array |
||
| 20 | */ |
||
| 21 | protected $fillable = [ |
||
| 22 | 'name', 'email', 'phone', 'password', |
||
| 23 | ]; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * The attributes that should be hidden for arrays. |
||
| 27 | * |
||
| 28 | * @var array |
||
| 29 | */ |
||
| 30 | protected $hidden = [ |
||
| 31 | 'password', 'remember_token', |
||
| 32 | ]; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * The attributes that should be cast to native types. |
||
| 36 | * |
||
| 37 | * @var array |
||
| 38 | */ |
||
| 39 | protected $casts = [ |
||
| 40 | 'email_verified_at' => 'datetime', |
||
| 41 | 'last_login_at' => 'datetime' |
||
| 42 | ]; |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Create a new factory instance for the model. |
||
| 46 | * |
||
| 47 | * @return \Illuminate\Database\Eloquent\Factories\Factory |
||
| 48 | */ |
||
| 49 | protected static function newFactory() |
||
| 53 | } |
||
| 54 |