1 | <?php |
||
39 | class Company extends Model implements AuthenticatableContract, |
||
40 | AuthorizableContract, |
||
41 | CanResetPasswordContract, |
||
42 | PolicyCheckable |
||
43 | { |
||
44 | use Authenticatable, Authorizable, CanResetPassword; |
||
45 | |||
46 | /** |
||
47 | * The database table used by the model. |
||
48 | * |
||
49 | * @var string |
||
50 | */ |
||
51 | //protected $table = 'users'; |
||
52 | |||
53 | /** |
||
54 | * The attributes that are mass assignable. |
||
55 | * |
||
56 | * @var array |
||
57 | */ |
||
58 | protected $fillable = ['name', 'email', 'password']; |
||
59 | |||
60 | /** |
||
61 | * The attributes excluded from the model's JSON form. |
||
62 | * |
||
63 | * @var array |
||
64 | */ |
||
65 | protected $hidden = ['password', 'remember_token']; |
||
66 | |||
67 | /** |
||
68 | * @return \Illuminate\Database\Eloquent\Relations\HasMany |
||
69 | */ |
||
70 | 52 | public function employees() |
|
71 | { |
||
72 | 52 | return $this->hasMany(Employee::class); |
|
73 | } |
||
74 | |||
75 | 36 | public function groups() |
|
79 | |||
80 | /** |
||
81 | * @param Group $group |
||
82 | * @return bool |
||
83 | */ |
||
84 | 16 | public function verifyGroup(Group $group) |
|
88 | |||
89 | /** |
||
90 | * @param Employee $employee |
||
91 | * @return bool |
||
92 | */ |
||
93 | 16 | public function verifyEmployee(Employee $employee) |
|
97 | |||
98 | /** |
||
99 | * @param Company $company |
||
100 | * @return bool |
||
101 | */ |
||
102 | public function verifyCompany(Company $company) |
||
106 | |||
107 | /** |
||
108 | * @param Calendar $calendar |
||
109 | * @return bool |
||
110 | */ |
||
111 | public function verifyCalendar(Calendar $calendar) |
||
116 | } |
||
117 |
An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.
If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.