develop
Last change
on this file since 2fc88ec was 2fc88ec, checked in by beratkjufliju <kufliju@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
874 bytes
|
Rev | Line | |
---|
[2fc88ec] | 1 | <?php
|
---|
| 2 |
|
---|
| 3 | namespace App\Models;
|
---|
| 4 |
|
---|
| 5 | use Illuminate\Contracts\Auth\MustVerifyEmail;
|
---|
| 6 | use Illuminate\Database\Eloquent\Factories\HasFactory;
|
---|
| 7 | use Illuminate\Foundation\Auth\User as Authenticatable;
|
---|
| 8 | use Illuminate\Notifications\Notifiable;
|
---|
| 9 | use Laravel\Sanctum\HasApiTokens;
|
---|
| 10 |
|
---|
| 11 | class User extends Authenticatable
|
---|
| 12 | {
|
---|
| 13 | use HasApiTokens, HasFactory, Notifiable;
|
---|
| 14 |
|
---|
| 15 | /**
|
---|
| 16 | * The attributes that are mass assignable.
|
---|
| 17 | *
|
---|
| 18 | * @var string[]
|
---|
| 19 | */
|
---|
| 20 | protected $fillable = [
|
---|
| 21 | 'name',
|
---|
| 22 | 'email',
|
---|
| 23 | 'password',
|
---|
| 24 | ];
|
---|
| 25 |
|
---|
| 26 | /**
|
---|
| 27 | * The attributes that should be hidden for serialization.
|
---|
| 28 | *
|
---|
| 29 | * @var array
|
---|
| 30 | */
|
---|
| 31 | protected $hidden = [
|
---|
| 32 | 'password',
|
---|
| 33 | 'remember_token',
|
---|
| 34 | ];
|
---|
| 35 |
|
---|
| 36 | /**
|
---|
| 37 | * The attributes that should be cast.
|
---|
| 38 | *
|
---|
| 39 | * @var array
|
---|
| 40 | */
|
---|
| 41 | protected $casts = [
|
---|
| 42 | 'email_verified_at' => 'datetime',
|
---|
| 43 | ];
|
---|
| 44 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.