这是 laravel 中的用户注册自定义表单。
public function register(RegisterTalentRequest $request)
{
$talent = $this->create($request->except('_method', '_token'));
//up till here the registration values are successfully saved in the
//database table, but it's not logged in following the below code
//and is directing to the custom login page.
Auth::attempt(['email' => $request->email, 'password' => $request->password]);
return redirect()->route('dashboard'); //directing to login and not dashboard
}
慕田峪9158850
牧羊人nacy