1 | <?php |
||
13 | class AclUser extends User |
||
14 | { |
||
15 | use SoftDeletes, HasApiTokens; |
||
16 | protected $table = 'users'; |
||
17 | protected $dates = ['created_at', 'updated_at', 'deleted_at']; |
||
18 | protected $hidden = ['password', 'remember_token', 'deleted_at']; |
||
19 | protected $guarded = ['id']; |
||
20 | public $fillable = ['profile_picture', 'name', 'email', 'password', 'locale', 'timezone']; |
||
21 | |||
22 | /** |
||
23 | * Encrypt the password attribute before |
||
24 | * saving it in the storage. |
||
25 | * |
||
26 | * @param string $value |
||
27 | */ |
||
28 | public function setPasswordAttribute($value) |
||
32 | |||
33 | /** |
||
34 | * Get the entity's notifications. |
||
35 | */ |
||
36 | public function notifications() |
||
40 | |||
41 | /** |
||
42 | * Get the entity's read notifications. |
||
43 | */ |
||
44 | public function readNotifications() |
||
48 | |||
49 | /** |
||
50 | * Get the entity's unread notifications. |
||
51 | */ |
||
52 | public function unreadNotifications() |
||
56 | |||
57 | public function roles() |
||
61 | |||
62 | public function oauthClients() |
||
66 | |||
67 | public function setProfilePictureAttribute($value) { |
||
70 | |||
71 | /** |
||
72 | * Return fcm device tokens that will be used in sending fcm notifications. |
||
73 | * |
||
74 | * @return array |
||
75 | */ |
||
76 | public function routeNotificationForFCM() |
||
92 | |||
93 | /** |
||
94 | * The channels the user receives notification broadcasts on. |
||
95 | * |
||
96 | * @return string |
||
97 | */ |
||
98 | public function receivesBroadcastNotificationsOn() |
||
102 | |||
103 | /** |
||
104 | * Custom password validation. |
||
105 | * |
||
106 | * @param string $password |
||
107 | * @return boolean |
||
108 | */ |
||
109 | public function validateForPassportPasswordGrant($password) |
||
117 | |||
118 | public static function boot() |
||
123 | } |
||
124 |