User
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 20
c 0
b 0
f 0
wmc 0
1
<?php
2
3
namespace App\Models;
4
5
use Illuminate\Auth\Authenticatable;
6
use Laravel\Lumen\Auth\Authorizable;
7
use Illuminate\Database\Eloquent\Model;
8
use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
9
use Illuminate\Contracts\Auth\Access\Authorizable as AuthorizableContract;
10
11
class User extends Model implements AuthenticatableContract, AuthorizableContract
12
{
13
    use Authenticatable, Authorizable;
0 ignored issues
show
Bug introduced by
The trait Illuminate\Auth\Authenticatable requires the property $password which is not provided by App\Models\User.
Loading history...
14
15
    /**
16
     * The attributes that are mass assignable.
17
     *
18
     * @var array
19
     */
20
    protected $fillable = [
21
        'name', 'email',
22
    ];
23
24
    /**
25
     * The attributes excluded from the model's JSON form.
26
     *
27
     * @var array
28
     */
29
    protected $hidden = [
30
        'password',
31
    ];
32
}
33
34
35
36