laravel - Eloquent returns error on saving a username/password -
in db, admin creates business relationship user, doesn't fill in username/password. 1 time row has been created, user email asks them register.
in store() of registercontroller, after perform validation, have following:
// here $user received via authorization code , email $user->username = $input['username']; $user->password = $input['password']; if ($user->save()) $data; homecoming 'could not save'; however, gives me error saying trying property of non-object. realize need hash password, have built on model , automatically hash password attribute inside.
any ideas?
laravel laravel-4 eloquent
No comments:
Post a Comment