| 1 | <?php |
||
| 7 | class User extends Authenticatable |
||
| 8 | {
|
||
| 9 | /** |
||
| 10 | * The attributes that are mass assignable. |
||
| 11 | * |
||
| 12 | * @var array |
||
| 13 | */ |
||
| 14 | protected $fillable = [ |
||
| 15 | 'name', 'email', 'password','isCreator','isAdmin','isModer','isActive', |
||
| 16 | ]; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * The attributes excluded from the model's JSON form. |
||
| 20 | * |
||
| 21 | * @var array |
||
| 22 | */ |
||
| 23 | protected $hidden = [ |
||
| 24 | 'password', 'remember_token', |
||
| 25 | ]; |
||
| 26 | |||
| 27 | public function backer(){
|
||
| 33 | |||
| 34 | public function creator(){
|
||
| 37 | } |
||
| 38 |