New to frameworks, really have no idea how accomplish this. Somebody help me how to go about this.
public function register(Request $request)
{
$this->validator($request->all())->validate();
event(new Registered($user = $this->create($request->all())));
$this->guard()->login($user);
return $this->registered($request, $user)
?: redirect($this->redirectPath());
} The only idea is if i comment out this **$this->guard()->login($user);**, the user will not be logged in automatically. But others like ** How to access the registration page even when the user is logged**, i really have no idea.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire