8000 New User · mdbootstrap/adminlte-laravel@ad8d2b9 · GitHub
[go: up one dir, main page]

Skip to content

Commit ad8d2b9

Browse files
committed
New User
1 parent 1f7fb0d commit ad8d2b9

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

src/stubs/User.php

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<?php
2+
3+
namespace App;
4+
5+
use Illuminate\Contracts\Auth\MustVerifyEmail;
6+
use Illuminate\Foundation\Auth\User as Authenticatable;
7+
use Illuminate\Notifications\Notifiable;
8+
9+
class User extends Authenticatable
10+
{
11+
use Notifiable;
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+
* The attributes that should be cast to native types.
33+
*
34+
* @var array
35+
*/
36+
protected $casts = [
37+
'email_verified_at' => 'datetime',
38+
];
39+
}

0 commit comments

Comments
 (0)
0