| Total Complexity | 3 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class CbUser extends Authenticatable |
||
| 9 | { |
||
| 10 | use Notifiable; |
||
|
|
|||
| 11 | |||
| 12 | protected $table = 'cms_users'; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * The attributes that are mass assignable. |
||
| 16 | * |
||
| 17 | * @var array |
||
| 18 | */ |
||
| 19 | protected $fillable = [ |
||
| 20 | 'name', |
||
| 21 | 'email', |
||
| 22 | 'password', |
||
| 23 | ]; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * The attributes that should be hidden for arrays. |
||
| 27 | * |
||
| 28 | * @var array |
||
| 29 | */ |
||
| 30 | protected $hidden = [ |
||
| 31 | 'password', |
||
| 32 | 'remember_token', |
||
| 33 | ]; |
||
| 34 | |||
| 35 | public function role() |
||
| 38 | } |
||
| 39 | |||
| 40 | public function myPhoto() : string |
||
| 47 |