User   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 12
c 1
b 0
f 0
dl 0
loc 35
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A casts() 0 5 1
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
10
class User extends Authenticatable
11
{
12
    use HasFactory, Notifiable;
0 ignored issues
show
Bug introduced by
The trait Illuminate\Notifications\Notifiable requires the property $email which is not provided by App\Models\User.
Loading history...
13
14
    /**
15
     * The attributes that are mass assignable.
16
     *
17
     * @var array<int, string>
18
     */
19
    protected $fillable = [
20
        'name',
21
        'email',
22
        'password',
23
    ];
24
25
    /**
26
     * The attributes that should be hidden for serialization.
27
     *
28
     * @var array<int, string>
29
     */
30
    protected $hidden = [
31
        'password',
32
        'remember_token',
33
    ];
34
35
    /**
36
     * Get the attributes that should be cast.
37
     *
38
     * @return array<string, string>
39
     */
40
    protected function casts(): array
41
    {
42
        return [
43
            'email_verified_at' => 'datetime',
44
            'password' => 'hashed',
45
        ];
46
    }
47
}
48