Closed hasangilak closed 10 years ago
Which version of Laravel are you using and can you post the model content?
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
@hasangilak Read this: http://laravel.com/docs/upgrade#upgrade-4.1.26
oh tnx man . i just respond to the new error and it did the trick as i mentioned . tnx bwt @mcampa
Yeah I had similar issues when I upgraded recently, glad it's solved.
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...);