MassAssignmentException
After setting everything up and going to {url}/anvard/facebook I get the following error:
The user is saved tho.
Comments (6)
-
-
After researching i found that this probably has something to do with saving the profile to the database.
In my situation i can login (with facebook), but then i got the 'Provider' error. But when i look in my database, it has stored the user correctly in the users table. But it did not save a profile.
So when i created a profile myself, with user_id linking to the user, and i set the identiefer and other options correctly (wich i got from an object dump, when i used this: http://www.mrcasual.com/on/coding/laravel4-package-management-with-composer/ tutorial, with that little script for testing, login worked), the script worked. With Auth::check in laravel ,i was able to see that i was logged in.
So, i think the user profile is not being saved somehow. I don`t know how to fix this..
-
This is an issue with your Profile model. Add a $fillable attribute to the class:
protected $fillable = array('provider', 'user_id');
-
Thanks abban!
-
This is documented in readme now so this issue could be closed.
-
- changed status to resolved
- Log in to comment
I got the exact same error. Not really sure where to look for with this error.