Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 1309 | 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
         */
1001 lars 19
        protected $guarded = "admin";
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',
1309 lars 29
            'rank',
30
            'admin',
31
            'employee',
32
            'app_user',
33
            'description',
34
            'save_session',
35
            'navigation_pos',
36
            'phone',
37
            'fax',
38
            'mail',
1331 lars 39
            'ignoreRemoteHosts',
40
            'terminpflege',
440 lars 41
        ];
2 lars 42
 
440 lars 43
        /**
44
         * The attributes that should be hidden for serialization.
45
         *
46
         * @var array<int, string>
47
         */
48
        protected $hidden = [
49
            'password',
50
            'remember_token',
51
        ];
2 lars 52
 
440 lars 53
        /**
54
         * The attributes that should be cast.
55
         *
56
         * @var array<string, string>
57
         */
58
        protected $casts = [
59
            'email_verified_at' => 'datetime',
60
        ];
61
    }