Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 2 | 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
 
440 lars 11
    class User extends Authenticatable
12
    {
13
        use HasApiTokens, HasFactory, Notifiable;
2 lars 14
 
440 lars 15
        /**
16
         * The connection name for the model.
17
         *
18
         * @var string
19
         */
20
        protected $connection = 'order';
21
        /**
22
         * The attributes that are mass assignable.
23
         *
24
         * @var array<int, string>
25
         */
26
        protected $fillable = [
27
            'name',
28
            'email',
29
            'password',
30
        ];
2 lars 31
 
440 lars 32
        /**
33
         * The attributes that should be hidden for serialization.
34
         *
35
         * @var array<int, string>
36
         */
37
        protected $hidden = [
38
            'password',
39
            'remember_token',
40
        ];
2 lars 41
 
440 lars 42
        /**
43
         * The attributes that should be cast.
44
         *
45
         * @var array<string, string>
46
         */
47
        protected $casts = [
48
            'email_verified_at' => 'datetime',
49
        ];
50
    }