标签云

微信群

扫码加入我们

WeChat QR Code

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?

2018年06月19日24分43秒

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?

2018年06月19日24分43秒

Thanks, Yes i solved the problem by copying LoginController and give name CustomerLoginController in Auth folder. It's works fine. Thanks.

2018年06月20日24分43秒

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.

2018年06月20日24分43秒

I solve the problem by copying LoginController and give name CustomerLoginController in Auth folder. It's works fine.

2018年06月20日24分43秒