Subversion-Projekte lars-tiefland.zeldi.de_alt

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
45 lars 1
<?php
2
 
3
    namespace App\Models;
4
 
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;
10
 
11
    class BackendUser extends Authenticatable
12
    {
13
        use HasApiTokens, HasFactory, Notifiable;
14
 
15
 
16
        /**
17
         * @var string
18
         */
19
        protected $guarded = "admin";
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
            'rank',
30
            'admin',
31
            'employee',
32
            'app_user',
33
            'description',
34
            'save_session',
35
            'navigation_pos',
36
            'phone',
37
            'fax',
38
            'mail',
39
            'ignoreRemoteHosts',
40
            'terminpflege',
41
        ];
42
 
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
        ];
52
 
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
    }