change Controller for login routes
Created 6 years ago by drand100Hi, I need to change Controller for /login. Can I do that? I need to overwrite /login route with new login function from my controller from my module.
Hi, I need to change Controller for /login. Can I do that? I need to overwrite /login route with new login function from my controller from my module.
Hey there!
You simply need to override the named route: https://github.com/anomalylabs/users-module/blob/master/src/UsersModuleServiceProvider.php#L61
To do so:
/resources/{APP_REF}/routes.php
file