Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 2 | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 2 Revision 440
Zeile 1... Zeile 1...
1
<?php
1
<?php
Zeile 2... Zeile 2...
2
 
2
 
Zeile 3... Zeile 3...
3
namespace App\Models;
3
    namespace App\Models;
4
 
4
 
5
// use Illuminate\Contracts\Auth\MustVerifyEmail;
5
    // use Illuminate\Contracts\Auth\MustVerifyEmail;
6
use Illuminate\Database\Eloquent\Factories\HasFactory;
6
    use Illuminate\Database\Eloquent\Factories\HasFactory;
7
use Illuminate\Foundation\Auth\User as Authenticatable;
7
    use Illuminate\Foundation\Auth\User as Authenticatable;
8
use Illuminate\Notifications\Notifiable;
8
    use Illuminate\Notifications\Notifiable;
9
use Laravel\Sanctum\HasApiTokens;
9
    use Laravel\Sanctum\HasApiTokens;
10
 
10
 
11
class User extends Authenticatable
11
    class User extends Authenticatable
12
{
12
    {
-
 
13
        use HasApiTokens, HasFactory, Notifiable;
-
 
14
 
-
 
15
        /**
-
 
16
         * The connection name for the model.
-
 
17
         *
-
 
18
         * @var string
13
    use HasApiTokens, HasFactory, Notifiable;
19
         */
14
 
20
        protected $connection = 'order';
15
    /**
21
        /**
16
     * The attributes that are mass assignable.
22
         * The attributes that are mass assignable.
17
     *
23
         *
18
     * @var array<int, string>
24
         * @var array<int, string>
19
     */
25
         */
20
    protected $fillable = [
26
        protected $fillable = [
21
        'name',
27
            'name',
22
        'email',
28
            'email',
23
        'password',
29
            'password',
24
    ];
30
        ];
25
 
31
 
26
    /**
32
        /**
27
     * The attributes that should be hidden for serialization.
33
         * The attributes that should be hidden for serialization.
28
     *
34
         *
29
     * @var array<int, string>
35
         * @var array<int, string>
30
     */
36
         */
31
    protected $hidden = [
37
        protected $hidden = [
32
        'password',
38
            'password',
33
        'remember_token',
39
            'remember_token',
34
    ];
40
        ];
35
 
41
 
36
    /**
42
        /**
37
     * The attributes that should be cast.
43
         * The attributes that should be cast.
38
     *
44
         *
39
     * @var array<string, string>
45
         * @var array<string, string>
40
     */
46
         */
41
    protected $casts = [
47
        protected $casts = [
42
        'email_verified_at' => 'datetime',
48
            'email_verified_at' => 'datetime',