| 1 | <?php |
||
| 16 | class Administrators extends Model implements AuthenticatableContract, |
||
|
|
|||
| 17 | AuthorizableContract, |
||
| 18 | CanResetPasswordContract{ |
||
| 19 | |||
| 20 | |||
| 21 | use Authenticatable, Authorizable, CanResetPassword; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * The database table used by the model. |
||
| 25 | * |
||
| 26 | * @var string |
||
| 27 | */ |
||
| 28 | protected $table = 'administrators'; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * The attributes that are mass assignable. |
||
| 32 | * |
||
| 33 | * @var array |
||
| 34 | */ |
||
| 35 | protected $fillable = ['name', 'email', 'password']; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * The attributes excluded from the model's JSON form. |
||
| 39 | * |
||
| 40 | * @var array |
||
| 41 | */ |
||
| 42 | protected $hidden = ['password', 'remember_token']; |
||
| 43 | |||
| 44 | |||
| 45 | |||
| 46 | public function getFullname(){ |
||
| 49 | |||
| 50 | |||
| 51 | } |
||
| 52 | |||
| 55 |