Alguien me ayuda en este tema ? Gracias!
Código PHP:
Ver original
public function postRegister() { $user = new User(); $user->name = Request::input('name'); $user->email = Request::input('email'); $user->password = bcrypt(Request::input('password')); $user->save(); } public function postLogin() { $email = Request::input('email'); $password = bcrypt(Request::input('password')); if (Auth::attempt(['email' => $email, 'password' => $password])) { return redirect('home'); } else { return redirect('login'); } }