Total Complexity | 2 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | final class User extends Authenticatable |
||
11 | { |
||
12 | use HasApiTokens, HasFactory, Notifiable; |
||
|
|||
13 | |||
14 | protected $guarded = []; |
||
15 | |||
16 | /** |
||
17 | * The attributes that should be cast to native types. |
||
18 | * |
||
19 | * @var array |
||
20 | */ |
||
21 | protected $casts = [ |
||
22 | 'verified_at' => 'datetime', |
||
23 | ]; |
||
24 | |||
25 | public function school() |
||
26 | { |
||
27 | return $this->belongsTo(School::class); |
||
28 | } |
||
29 | |||
30 | public function verify(): self |
||
36 | } |
||
37 | } |
||
38 |