getKey(); } public function getJWTCustomClaims() { return []; } // Change to match your migration protected $table = 'felhasznalok'; protected $fillable = [ 'nev', 'email', 'felh_nev', 'jelszo', 'is_admin', ]; protected $hidden = [ 'jelszo', 'remember_token' ]; protected $casts = [ 'is_admin' => 'boolean', 'email_verified_at' => 'datetime', ]; // This method tells Laravel to use jelszo field for passwords public function getAuthPassword() { return $this->jelszo; } // Fix this to use 'jelszo' instead of 'password' public function setJelszoAttribute($value) { $this->attributes['jelszo'] = \Illuminate\Support\Facades\Hash::make($value); } }