have you checked the LoginController ? http/controllers/auth/Logincontroller
use AuthenticatesUsers;
/**
* Where to redirect users after login.
*
* @var string
*/
protected $redirectTo = 'yournamehere';
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi,
(I'm using Laravel 5.3 and the basic Laravel Auth system...)
I'm trying to get my site to automatically login after the user registers. From Googling it seems like this should be the default behaviour, this but it doesn't seem to be working for me. The user is definitely being created so the problem isn't there. I thought I'd need to edit the RegisterController create() method but I'm not sure exactly what I should be putting in there. Also, if it's not doing the default behaviour I'd rather fix that than put something in to bodge it!
Any help would be appreciated!
Many thanks, Nick
Please or to participate in this conversation.