I have built a users area in my CMS and I am experiencing an issue when a new user is created.
I am using Laravel 5.7.25. The CMS does not allow users to be created by anyone that is not logged in and does not have full admin rights.
I am using the standard " register " shipped with Laravel (app\http\auth\RegisterController). The only difference is that the middleware is set to 'admin'.
When I create a new user , the new users is created but it logs out the current user and logs the new user in.
How do I prevent this. I would like the current user to remain logged in.
I have tried things that only lead to the registercontroller breaking and throwing errors:
Thank you in advance