1 | <?php |
||
36 | class Company extends Model implements AuthenticatableContract, |
||
37 | AuthorizableContract, |
||
38 | CanResetPasswordContract, |
||
39 | PolicyCheckable |
||
40 | { |
||
41 | use Authenticatable, Authorizable, CanResetPassword; |
||
42 | |||
43 | /** |
||
44 | * The database table used by the model. |
||
45 | * |
||
46 | * @var string |
||
47 | */ |
||
48 | //protected $table = 'users'; |
||
49 | |||
50 | /** |
||
51 | * The attributes that are mass assignable. |
||
52 | * |
||
53 | * @var array |
||
54 | */ |
||
55 | protected $fillable = ['name', 'email', 'password']; |
||
56 | |||
57 | /** |
||
58 | * The attributes excluded from the model's JSON form. |
||
59 | * |
||
60 | * @var array |
||
61 | */ |
||
62 | protected $hidden = ['password', 'remember_token']; |
||
63 | |||
64 | /** |
||
65 | * @return \Illuminate\Database\Eloquent\Relations\HasMany |
||
66 | */ |
||
67 | 34 | public function employees() |
|
71 | |||
72 | 14 | public function groups() |
|
76 | |||
77 | /** |
||
78 | * @param Group $group |
||
79 | * @return bool |
||
80 | */ |
||
81 | 10 | public function verifyGroup(Group $group) |
|
85 | |||
86 | /** |
||
87 | * @param Employee $employee |
||
88 | * @return bool |
||
89 | */ |
||
90 | 8 | public function verifyEmployee(Employee $employee) |
|
94 | |||
95 | /** |
||
96 | * @param Company $company |
||
97 | * @return bool |
||
98 | */ |
||
99 | public function verifyCompany(Company $company) |
||
103 | } |
||
104 |