Subversion-Projekte lars-tiefland.laravel_shop

Revision

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
         */
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',
440 lars 39
        ];
2 lars 40
 
440 lars 41
        /**
42
         * The attributes that should be hidden for serialization.
43
         *
44
         * @var array<int, string>
45
         */
46
        protected $hidden = [
47
            'password',
48
            'remember_token',
49
        ];
2 lars 50
 
440 lars 51
        /**
52
         * The attributes that should be cast.
53
         *
54
         * @var array<string, string>
55
         */
56
        protected $casts = [
57
            'email_verified_at' => 'datetime',
58
        ];
59
    }