Subversion-Projekte lars-tiefland.webanos.faltradxxs.de

Revision

Revision 15 | Zur aktuellen Revision | Details | 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
 
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
        ];
30
 
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
        ];
40
 
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
    }