ollieread / multiauth

Laravel multi auth
441 stars 109 forks source link

Missing argument 2 for Illuminate\Database\Eloquent\Model::setAttribute() #29

Closed hasangilak closed 10 years ago

hasangilak commented 10 years ago

let me tell you what i have done . i made Admin model then i copied all the User.php content into it . also i filled $table variable with "admins" . i get this error when i use this function Auth::admin()->logout(); Missing argument 2 for Illuminate\Database\Eloquent\Model::setAttribute(), called in C:\xampp\htdocs\madreselaravelfinal\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Model.php on line 2432 and defined

I have to tell that i dont have any problem in Auth::admin()->attempt(arr...);

ollieread commented 10 years ago

Which version of Laravel are you using and can you post the model content?

hasangilak commented 10 years ago

well i did reinstall laravel from scratch which make my problem semi solved . but this time i got an other error about remember_token column in my admins table . i simply added this column and now every thing is cool . tnx for your job and respond sir

mcampa commented 10 years ago

@hasangilak Read this: http://laravel.com/docs/upgrade#upgrade-4.1.26

hasangilak commented 10 years ago

oh tnx man . i just respond to the new error and it did the trick as i mentioned . tnx bwt @mcampa

ollieread commented 10 years ago

Yeah I had similar issues when I upgraded recently, glad it's solved.