Medianet-Tunisia /
laravel-auth-api
| 1 | <?php |
||
| 2 | |||
| 3 | namespace MedianetDev\LaravelAuthApi\Models; |
||
| 4 | |||
| 5 | use Laravel\Passport\HasApiTokens; |
||
| 6 | use MedianetDev\LaravelAuthApi\Http\Controllers\Interfaces\MustVerifyEmail; |
||
| 7 | use MedianetDev\LaravelAuthApi\Models\Traits\InheritsRelationsFromParentModel; |
||
| 8 | use MedianetDev\LaravelAuthApi\Models\User as Authenticatable; |
||
| 9 | |||
| 10 | class ApiUser extends Authenticatable implements MustVerifyEmail |
||
| 11 | { |
||
| 12 | use HasApiTokens; |
||
| 13 | use InheritsRelationsFromParentModel; |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 14 | |||
| 15 | protected $table = 'users'; |
||
| 16 | protected $guarded = ['c_password']; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * The attributes that should be hidden for arrays. |
||
| 20 | * |
||
| 21 | * @var array |
||
| 22 | */ |
||
| 23 | protected $hidden = [ |
||
| 24 | 'password', 'remember_token', |
||
| 25 | ]; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * The attributes that should be cast to native types. |
||
| 29 | * lslsls. |
||
| 30 | * @var array |
||
| 31 | */ |
||
| 32 | protected $casts = [ |
||
| 33 | 'email_verified_at' => 'datetime', |
||
| 34 | ]; |
||
| 35 | } |
||
| 36 |