imraj123's avatar

How to default login url to admin

Dear sirs and Mams,

I wanna used to login the admin page by giving admin, but i am only using login to access how to change it to admin in routes can u help

0 likes
9 replies
imraj123's avatar

Dear Exorion,

Now i am using localhost:801/login to access the login controller. instead of i would like to access it admin how to do that i need to set it to routs or i don't know can u help me

exorion's avatar

Yes. Can you post here a routes/route.php file or routes/web.php if you use laravel 5.3

imraj123's avatar

Dear WebDo

I am using 5.3 version is there any problem

exorion's avatar

great - post your routes/web.php here and we can help you )

vipin93's avatar

just go and search and type this " Illuminate\Routing\Router" and under " public function auth()" change login to admin (as what u want) and check localhost:8000/admin it will redirect to login page and don't forget to change handler.php "return redirect()->guest('login');" to "return redirect()->guest('admin');"

WebDo's avatar

Hello Imraj123,

It will work fine in 5.3 as well. if you get any issue please let me know.

Thanks,

Please or to participate in this conversation.