*/ protected $fillable = [ 'nev', 'email', 'felh_nev', 'jelszo', 'is_admin', ]; /** * The attributes that should be hidden for serialization. * * @var array */ protected $hidden = [ 'jelszo', ]; /** * The attributes that should be cast. * * @var array */ protected $casts = [ 'is_admin' => 'boolean', 'email_verified_at' => 'datetime', ]; /** * Automatically hash the password when it's set * * @param string $value * @return void */ public function setPasswordAttribute($value) { $this->attributes['password'] = \Illuminate\Support\Facades\Hash::make($value); } }