1 | <?php namespace Distilleries\Expendable\Models; |
||
14 | class User extends BaseModel implements AuthenticatableContract, CanResetPasswordContract, PermissionUtilContract, LockableContract { |
||
15 | |||
16 | use Authenticatable, Authorizable, CanResetPassword, \Distilleries\Expendable\Models\StatusTrait, LockableTrait; |
||
17 | use Notifiable; |
||
18 | protected $tabPermission = []; |
||
19 | protected $fillable = [ |
||
20 | 'email', |
||
21 | 'password', |
||
22 | 'status', |
||
23 | 'role_id' |
||
24 | ]; |
||
25 | |||
26 | /** |
||
27 | * The attributes excluded from the model's JSON form. |
||
28 | * |
||
29 | * @var array |
||
30 | */ |
||
31 | 296 | protected $hidden = ['password', 'remember_token']; |
|
32 | |||
33 | 296 | public function role() |
|
37 | |||
38 | 396 | public static function boot() |
|
43 | |||
44 | 276 | ||
45 | |||
46 | public function hasAccess($key) |
||
56 | |||
57 | 20 | public function getFirstRedirect($left) |
|
81 | |||
82 | |||
83 | /** |
||
84 | * Send the password reset notification. |
||
85 | * |
||
86 | * @param string $token |
||
87 | * @return void |
||
88 | */ |
||
89 | public function sendPasswordResetNotification($token) |
||
93 | |||
94 | } |
||
95 |
Since your code implements the magic getter
_get
, this function will be called for any read access on an undefined variable. You can add the@property
annotation to your class or interface to document the existence of this variable.If the property has read access only, you can use the @property-read annotation instead.
Of course, you may also just have mistyped another name, in which case you should fix the error.
See also the PhpDoc documentation for @property.