Facebook
From Aqua Hamerkop, 4 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 141
  1. <?php
  2.  
  3. namespace App;
  4.  
  5. use Illuminate\Auth\Authenticatable;
  6. use Illuminate\Database\Eloquent\Model;
  7. use Illuminate\Auth\Passwords\CanResetPassword;
  8. use Illuminate\Foundation\Auth\Access\Authorizable;
  9. use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
  10. use Illuminate\Contracts\Auth\Access\Authorizable as AuthorizableContract;
  11. use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract;
  12.  
  13. class Admin extends Model implements AuthenticatableContract,
  14.     AuthorizableContract,
  15.     CanResetPasswordContract
  16. {
  17.     use Authenticatable, Authorizable, CanResetPassword;
  18.  
  19.     /**
  20.      * The database table used by the model.
  21.      *
  22.      * @var string
  23.      */
  24.     protected $table = 'admin';
  25.  
  26.     /**
  27.      * The attributes that are mass assignable.
  28.      *
  29.      * @var array
  30.      */
  31.     protected $fillable = [
  32.         'name',
  33.         'username',
  34.         'password',
  35.         'email',
  36.         'image',
  37.     ];
  38.  
  39.     /**
  40.      * The attributes excluded from the model's JSON form.
  41.      *
  42.      * @var array
  43.      */
  44.     protected $hidden = [
  45.         'password',
  46.         'remember_token',
  47.     ];
  48. }
  49.