1 | <?php |
||
11 | class User extends Authenticatable |
||
12 | { |
||
13 | /** |
||
14 | * The attributes that are mass assignable. |
||
15 | * |
||
16 | * @var array |
||
17 | */ |
||
18 | protected $fillable = [ |
||
19 | 'name', 'email', 'password', |
||
20 | ]; |
||
21 | |||
22 | /** |
||
23 | * The attributes that should be hidden for arrays. |
||
24 | * |
||
25 | * @var array |
||
26 | */ |
||
27 | protected $hidden = [ |
||
28 | 'password', 'remember_token', |
||
29 | ]; |
||
30 | |||
31 | |||
32 | /** |
||
33 | * @return \Illuminate\Database\Eloquent\Relations\HasMany |
||
34 | */ |
||
35 | public function getCalculations() |
||
39 | |||
40 | } |
||
41 |