public function postSignup(Request $request) { //dd('signup'); $this->validate($request, ['email' => 'required|unique:users|email|max:255', 'username' => 'required|unique:users|alpha_dash|max:20', 'password' => 'required|min:4']); //dd('posted okay'); User::create(['email' => $request->input('email'), 'username' => $request->input('username'), 'password' => bcrypt($request->input('password'))]); return redirect()->route('home')->with('info', 'Your account has been created and you can now sign in!'); // redirect to home page and flash a message }