Update:Argument fehlt 2 für Illuminate Database Eloquent Modell :: setAttribute() Laravel 4.1
ich ein Problem in meiner Abmeldung haben, wenn ich in Laravel 4 gearbeitet funktioniert es Finne aber in Laravel 4.1 ich habe diesen Fehler:
Missing argument 2 for Illuminate\Database\Eloquent\Model::setAttribute(),
called in
C:\Users\mohammed\workspace\mylittlebiz\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Model.php on line 2432 and defined
dies meine Aktion:
public function doLogout()
{
Auth::logout(); // log the user out of our application
return Redirect::to('login'); // redirect the user to the login screen
}
das mein Modell:
use Illuminate\Auth\UserInterface;
use Illuminate\Auth\Reminders\RemindableInterface;
class User extends Eloquent implements UserInterface, RemindableInterface {
/**
* The database table used by the model.
*
* @var string
*/
protected $table = 'users';
protected $hidden = array('password');
/**
* Get the unique identifier for the user.
*
* @return mixed
*/
public function getAuthIdentifier()
{
return $this->getKey();
}
/**
* Get the password for the user.
*
* @return string
*/
public function getAuthPassword()
{
return $this->password;
}
/**
* Get the e-mail address where password reminders are sent.
*
* @return string
*/
public function getReminderEmail()
{
return $this->email;
}
/* overriding actions from abstact class*/
public function getRememberToken(){}
public function setRememberToken($value){}
public function getRememberTokenName(){}
Haben Sie eine 'mutator/setKeyAttribute' Methode in Ihrem' User' Modell? –
Nein was genau sollte ich meinem Modell hinzufügen? – Mohammadov
Nichts, dachte ich, das war ein Problem. –