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

Revision

Revision 118 | 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 User extends Authenticatable
12
    {
13
        use HasApiTokens, HasFactory, Notifiable;
14
 
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
        ];
31
 
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
        ];
41
 
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
    }