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 | 12 | public function employees() |
|
71 | |||
72 | /** |
||
73 | * @param Group $group |
||
74 | * @return bool |
||
75 | */ |
||
76 | public function verifyGroup(Group $group) |
||
80 | |||
81 | /** |
||
82 | * @param Employee $employee |
||
83 | * @return bool |
||
84 | */ |
||
85 | 8 | public function verifyEmployee(Employee $employee) |
|
89 | |||
90 | /** |
||
91 | * @param Company $company |
||
92 | * @return bool |
||
93 | */ |
||
94 | public function verifyCompany(Company $company) |
||
98 | } |
||
99 |