swinn-io /
server
| 1 | <?php |
||
| 2 | |||
| 3 | namespace App\Models; |
||
| 4 | |||
| 5 | use App\Traits\HasUUID; |
||
| 6 | use Cmgmyr\Messenger\Traits\Messagable; |
||
| 7 | use Illuminate\Contracts\Auth\MustVerifyEmail; |
||
| 8 | use Illuminate\Database\Eloquent\Factories\HasFactory; |
||
| 9 | use Illuminate\Foundation\Auth\User as Authenticatable; |
||
| 10 | use Illuminate\Notifications\Notifiable; |
||
| 11 | use Laravel\Passport\HasApiTokens; |
||
| 12 | |||
| 13 | class User extends Authenticatable |
||
| 14 | { |
||
| 15 | use HasApiTokens; |
||
| 16 | use HasFactory; |
||
| 17 | use HasUUID; |
||
| 18 | use Messagable; |
||
| 19 | use Notifiable; |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 20 | |||
| 21 | /** |
||
| 22 | * The attributes that are mass assignable. |
||
| 23 | * |
||
| 24 | * @var array |
||
| 25 | */ |
||
| 26 | protected $fillable = [ |
||
| 27 | 'name', |
||
| 28 | 'email', |
||
| 29 | 'one_time_password', |
||
| 30 | 'password_expires_at', |
||
| 31 | 'provider_name', |
||
| 32 | 'provider_id', |
||
| 33 | 'notify_via', |
||
| 34 | 'access_token', |
||
| 35 | 'refresh_token', |
||
| 36 | 'profile', |
||
| 37 | ]; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * The attributes that should be hidden for arrays. |
||
| 41 | * |
||
| 42 | * @var array |
||
| 43 | */ |
||
| 44 | protected $hidden = [ |
||
| 45 | 'one_time_password', |
||
| 46 | 'password_expires_at', |
||
| 47 | 'remember_token', |
||
| 48 | 'two_factor_recovery_codes', |
||
| 49 | 'two_factor_secret', |
||
| 50 | 'access_token', |
||
| 51 | 'refresh_token', |
||
| 52 | 'profile', |
||
| 53 | 'provider_name', |
||
| 54 | 'provider_id', |
||
| 55 | ]; |
||
| 56 | |||
| 57 | /** |
||
| 58 | * The attributes that should be cast to native types. |
||
| 59 | * |
||
| 60 | * @var array |
||
| 61 | */ |
||
| 62 | protected $casts = [ |
||
| 63 | 'notify_via' => 'array', |
||
| 64 | 'profile' => 'array', |
||
| 65 | 'password_expires_at' => 'datetime', |
||
| 66 | ]; |
||
| 67 | |||
| 68 | /** |
||
| 69 | * The accessors to append to the model's array form. |
||
| 70 | * |
||
| 71 | * @var array |
||
| 72 | */ |
||
| 73 | protected $appends = [ |
||
| 74 | // 'profile_photo_url', |
||
| 75 | ]; |
||
| 76 | } |
||
| 77 |