1 | <?php |
||
36 | class Employee extends Model implements AuthenticatableContract, |
||
37 | AuthorizableContract, |
||
38 | CanResetPasswordContract |
||
39 | { |
||
40 | use Authenticatable, Authorizable, CanResetPassword; |
||
41 | |||
42 | /** |
||
43 | * The database table used by the model. |
||
44 | * |
||
45 | * @var string |
||
46 | */ |
||
47 | //protected $table = 'employees'; |
||
48 | |||
49 | /** |
||
50 | * The attributes that are mass assignable. |
||
51 | * |
||
52 | * @var array |
||
53 | */ |
||
54 | protected $fillable = ['name', 'email', 'password']; |
||
55 | |||
56 | /** |
||
57 | * The attributes excluded from the model's JSON form. |
||
58 | * |
||
59 | * @var array |
||
60 | */ |
||
61 | protected $hidden = ['password', 'remember_token']; |
||
62 | |||
63 | 1 | public function company() |
|
67 | |||
68 | public function groups() |
||
72 | |||
73 | public function meetings() |
||
77 | |||
78 | /** |
||
79 | * Get the e-mail address where password reset links are sent. |
||
80 | * |
||
81 | * Make email unique |
||
82 | * |
||
83 | * @return string |
||
84 | */ |
||
85 | 1 | public function getEmailForPasswordReset() |
|
89 | } |
||
90 |