このページの2つのバージョン間の差分を表示します。
11_php:02_framework:01_laravel:42_auth [2020/01/17 13:12] – 作成 matsui | 11_php:02_framework:01_laravel:42_auth [2020/01/17 13:13] (現在) – matsui | ||
---|---|---|---|
行 10: | 行 10: | ||
app/ | app/ | ||
< | < | ||
+ | <?php | ||
+ | |||
+ | namespace App; | ||
+ | |||
+ | use Illuminate\Notifications\Notifiable; | ||
+ | use Illuminate\Contracts\Auth\MustVerifyEmail; | ||
+ | use Illuminate\Foundation\Auth\User as Authenticatable; | ||
+ | |||
+ | class User extends \TCG\Voyager\Models\User | ||
+ | { | ||
+ | use Notifiable; | ||
+ | |||
+ | /** | ||
+ | * The attributes that are mass assignable. | ||
+ | * | ||
+ | * @var array | ||
+ | */ | ||
+ | protected $fillable = [ | ||
+ | ' | ||
+ | ]; | ||
+ | |||
+ | /** | ||
+ | * The attributes that should be hidden for arrays. | ||
+ | * | ||
+ | * @var array | ||
+ | */ | ||
+ | protected $hidden = [ | ||
+ | ' | ||
+ | ]; | ||
+ | |||
+ | /** | ||
+ | * The attributes that should be cast to native types. | ||
+ | * | ||
+ | * @var array | ||
+ | */ | ||
+ | protected $casts = [ | ||
+ | ' | ||
+ | ]; | ||
+ | } | ||
</ | </ | ||