only('name', 'email', 'password'); $inputs['password'] = Hash::make($inputs['password']); $user = User::create($inputs); Auth::login($user); return redirect()->route('dashboard')->with('success', 'register successfully'); } catch (\Exception $e) { return redirect() ->route('register.create') ->with('error', 'not register please try again' . $e->getMessage()); } } }