A
A
Alexfixer2020-10-27 23:01:53
Laravel
Alexfixer, 2020-10-27 23:01:53

How to change the route in laravel 5.8 or make an additional /login to /admin?

Authorization out of the box. When you go to https://site.ru/admin or https://site.ru/login , the login page should open. You need exactly the address https://site.ru/admin and not https://site.ru/admin/login

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
pLavrenov, 2020-10-28
@Alexfixer

Add a route to routes/web.php

Route::get('admin', 'Auth\[email protected]')->name('admin.login');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question