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