Subversion-Projekte lars-tiefland.webanos.marine-sales.de

Revision

Revision 333 | Details | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
2 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
 
415 lars 11
    /**
12
 * App\Models\BackendUser
13
 *
14
 * @property int $id
15
 * @property string $name
16
 * @property string $email
17
 * @property string $mail
18
 * @property \Illuminate\Support\Carbon|null $email_verified_at
19
 * @property string $password
20
 * @property string $dir
21
 * @property string $description
22
 * @property string $session_data
23
 * @property int $save_session
24
 * @property string $view_data
25
 * @property string $datenquellen
26
 * @property string $navigation_pos
27
 * @property string $ignoreRemoteHosts
28
 * @property string $remember_token
29
 * @property int|null $host_group
30
 * @property string $phone
31
 * @property string $fax
32
 * @property int $employee
33
 * @property int $terminpflege
34
 * @property int $admin
35
 * @property int $app_user
36
 * @property int $rank
37
 * @property string|null $last_login
38
 * @property string $ip
39
 * @property string $created_by
40
 * @property string $updated_by
41
 * @property \Illuminate\Support\Carbon|null $created_at
42
 * @property \Illuminate\Support\Carbon|null $updated_at
43
 * @property string|null $google2fa_secret
44
 * @property-read \Illuminate\Notifications\DatabaseNotificationCollection<int, \Illuminate\Notifications\DatabaseNotification> $notifications
45
 * @property-read int|null $notifications_count
46
 * @property-read \Illuminate\Database\Eloquent\Collection<int, \Laravel\Sanctum\PersonalAccessToken> $tokens
47
 * @property-read int|null $tokens_count
48
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser newModelQuery()
49
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser newQuery()
50
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser query()
51
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser whereAdmin($value)
52
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser whereAppUser($value)
53
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser whereCreatedAt($value)
54
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser whereCreatedBy($value)
55
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser whereDatenquellen($value)
56
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser whereDescription($value)
57
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser whereDir($value)
58
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser whereEmail($value)
59
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser whereEmailVerifiedAt($value)
60
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser whereEmployee($value)
61
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser whereFax($value)
62
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser whereGoogle2faSecret($value)
63
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser whereHostGroup($value)
64
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser whereId($value)
65
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser whereIgnoreRemoteHosts($value)
66
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser whereIp($value)
67
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser whereLastLogin($value)
68
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser whereMail($value)
69
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser whereName($value)
70
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser whereNavigationPos($value)
71
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser wherePassword($value)
72
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser wherePhone($value)
73
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser whereRank($value)
74
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser whereRememberToken($value)
75
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser whereSaveSession($value)
76
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser whereSessionData($value)
77
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser whereTerminpflege($value)
78
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser whereUpdatedAt($value)
79
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser whereUpdatedBy($value)
80
 * @method static \Illuminate\Database\Eloquent\Builder|BackendUser whereViewData($value)
81
 * @mixin \Eloquent
82
 */
83
class BackendUser extends Authenticatable
2 lars 84
    {
85
        use HasApiTokens, HasFactory, Notifiable;
86
 
87
 
88
        /**
89
         * @var string
90
         */
91
        protected $guarded = "admin";
92
        /**
93
         * The attributes that are mass assignable.
94
         *
95
         * @var array<int, string>
96
         */
97
        protected $fillable = [
98
            'name',
99
            'email',
100
            'password',
101
            'rank',
102
            'admin',
103
            'employee',
104
            'app_user',
105
            'description',
106
            'save_session',
107
            'navigation_pos',
108
            'phone',
109
            'fax',
110
            'mail',
111
            'ignoreRemoteHosts',
112
            'terminpflege',
113
        ];
114
 
115
        /**
116
         * The attributes that should be hidden for serialization.
117
         *
118
         * @var array<int, string>
119
         */
120
        protected $hidden = [
333 lars 121
            //'password',
2 lars 122
            'remember_token',
123
        ];
124
 
125
        /**
126
         * The attributes that should be cast.
127
         *
128
         * @var array<string, string>
129
         */
130
        protected $casts = [
131
            'email_verified_at' => 'datetime',
132
        ];
133
    }