-1👍
You must define SignupRequest class on your controller for work defined rules. Example usage for signup function,
public function signup(SignupRequest $request)
{
User::create($request->all()); // the problem is not bcrypting the password section
// login the registered user
return $this->login($request);
}
Also you should define $token variable on login function.
Finally, you can find error details on under storage/logs/ folder files.
I hope this help you.
- [Vuejs]-Axios Vue.js throwing Cors error on Heroku Laravel application
- [Vuejs]-Require other library (jquery or etc.) in vue.js
Source:stackexchange.com