Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 3
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 1
User
0.00% covered (danger)
0.00%
0 / 3
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 1
 casts
0.00% covered (danger)
0.00%
0 / 3
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3namespace App\Models;
4
5use Illuminate\Database\Eloquent\Factories\HasFactory;
6use Illuminate\Foundation\Auth\User as Authenticatable;
7use Illuminate\Notifications\Notifiable;
8use Laravel\Sanctum\HasApiTokens;
9
10class User extends Authenticatable
11{
12    use HasApiTokens, HasFactory, Notifiable;
13
14    /**
15     * The attributes that are mass assignable.
16     *
17     * @var array<int, string>
18     */
19    protected $fillable = [
20        'name',
21        'email',
22        'password',
23    ];
24
25    /**
26     * The attributes that should be hidden for serialization.
27     *
28     * @var array<int, string>
29     */
30    protected $hidden = [
31        'password',
32        'remember_token',
33    ];
34
35    /**
36     * The attributes that should be cast.
37     *
38     * @return array<string, string>
39     */
40    #[\Override]
41    protected function casts(): array
42    {
43        return [
44            'email_verified_at' => 'datetime',
45        ];
46    }
47}