User
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 15
c 1
b 0
f 0
dl 0
loc 36
wmc 0
1
<?php
2
3
namespace App\Models;
4
5
use App\Infrastructure\Contracts\Auth\MustVerifyEmail;
6
use App\Infrastructure\Foundation\Auth\User as Authenticatable;
7
use Illuminate\Database\Eloquent\Factories\HasFactory;
8
use Illuminate\Notifications\Notifiable;
9
use Laravel\Sanctum\HasApiTokens;
10
11
/**
12
 * @method static \Database\Factories\UserFactory<static> factory(callable|array|int|null $count = null, callable|array $state = []) Get a new factory instance for the model.
13
 */
14
class User extends Authenticatable
15
{
16
    use HasApiTokens, HasFactory, Notifiable,
0 ignored issues
show
introduced by
The trait App\Models\Concerns\User\Relation requires some properties which are not provided by App\Models\User: $permissions, $guard_name
Loading history...
Bug introduced by
The trait App\Models\Concerns\User\Event requires the property $map which is not provided by App\Models\User.
Loading history...
17
        Concerns\User\Attribute,
18
        Concerns\User\Event,
19
        Concerns\User\Relation;
20
21
    /**
22
     * {@inheritDoc}
23
     *
24
     * @var array<int, string>
25
     */
26
    protected $fillable = [
27
        'username',
28
        'name',
29
        'email',
30
        'password',
31
    ];
32
33
    /**
34
     * {@inheritDoc}
35
     *
36
     * @var array<int, string>
37
     */
38
    protected $hidden = [
39
        'password',
40
        'remember_token',
41
    ];
42
43
    /**
44
     * {@inheritDoc}
45
     *
46
     * @var array<string, string>
47
     */
48
    protected $casts = [
49
        'email_verified_at' => 'datetime',
50
    ];
51
}
52