Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 440 | Revision 1001 | Zur aktuellen Revision | Details | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
2 lars 1
<?php
2
 
440 lars 3
    namespace App\Models;
2 lars 4
 
440 lars 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;
2 lars 10
 
989 lars 11
    class BackendUser extends Authenticatable
440 lars 12
    {
13
        use HasApiTokens, HasFactory, Notifiable;
2 lars 14
 
989 lars 15
 
440 lars 16
        /**
17
         * @var string
18
         */
989 lars 19
        protected $guarded = "backend";
440 lars 20
        /**
21
         * The attributes that are mass assignable.
22
         *
23
         * @var array<int, string>
24
         */
25
        protected $fillable = [
26
            'name',
27
            'email',
28
            'password',
29
        ];
2 lars 30
 
440 lars 31
        /**
32
         * The attributes that should be hidden for serialization.
33
         *
34
         * @var array<int, string>
35
         */
36
        protected $hidden = [
37
            'password',
38
            'remember_token',
39
        ];
2 lars 40
 
440 lars 41
        /**
42
         * The attributes that should be cast.
43
         *
44
         * @var array<string, string>
45
         */
46
        protected $casts = [
47
            'email_verified_at' => 'datetime',
48
        ];
49
    }