When we setup the Laravel authentication functionality it will automatically create route login and login functionality.
Can we change that route login functionality and add to our created controller functionality?
Can we write route login in our routes/web.php file and change the logincontroller to our customercontroller?
Yes, You definitely can but why?
Yes off course you can change according to your wish. But, I don't think customerController is a good name for login functionality. What say you?
Thanks, Yes i solved the problem by copying LoginController and give name CustomerLoginController in Auth folder. It's works fine. Thanks.
I wrote blow lines in routes/web.php Route::get('/login', 'CustomerControllerlogin')->name('login'); Route::post('/login', 'CustomerControllerloginsubmit')->name('login.submit'); but it shows me "The page isn’t redirecting properly" page.
I solve the problem by copying LoginController and give name CustomerLoginController in Auth folder. It's works fine.