Issues (44)

src/Models/TestUser.php (1 issue)

Labels
Severity
1
<?php
2
3
namespace Ikechukwukalu\Sanctumauthstarter\Models;
4
5
use Illuminate\Database\Eloquent\Factories\HasFactory;
6
use Illuminate\Foundation\Auth\User as Authenticatable;
7
use Illuminate\Notifications\Notifiable;
8
use Laravel\Sanctum\HasApiTokens;
9
10
class TestUser extends Authenticatable
11
{
12
    use HasApiTokens, HasFactory, Notifiable;
0 ignored issues
show
The trait Illuminate\Notifications\Notifiable requires the property $email which is not provided by Ikechukwukalu\Sanctumauthstarter\Models\TestUser.
Loading history...
13
14
    protected $table = "users";
15
16
    /**
17
     * The attributes that are mass assignable.
18
     *
19
     * @var array<int, string>
20
     */
21
    protected $fillable = [
22
        'name',
23
        'email',
24
        'password',
25
        'two_factor',
26
        'socialite_signup',
27
        'form_signup'
28
    ];
29
30
    /**
31
     * The attributes that should be hidden for serialization.
32
     *
33
     * @var array<int, string>
34
     */
35
    protected $hidden = [
36
        'password',
37
        'remember_token',
38
    ];
39
40
    /**
41
     * The attributes that should be cast.
42
     *
43
     * @var array<string, string>
44
     */
45
    protected $casts = [
46
        'email_verified_at' => 'datetime',
47
    ];
48
}
49