Search code examples
laravelauthenticationlaravel-5.3laravel-authorization

Run function after registration in Laravel 5.3 basic authentication


By default Laravel 5.3 login user automatically after registration.I need a suggestion for get the user ID after the user automatically logged in and then run a function without redirection.How can I do this?


Solution

  • You can edit create() method in Auth\RegisterController.php and call your function there.