P
P
potapovdmtriy2015-06-30 20:17:49
Laravel
potapovdmtriy, 2015-06-30 20:17:49

Laravel why is the route not working?

Route::get('login', function()
{
url(' test.ru/auth/login ');
});
how to redirect the user when entering test.ru/login to test.ru/auth/login ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeniy Odinets, 2015-06-30
@potapovdmtriy

laravel.com/docs/5.0/responses#redirects

Route::get('login', function()
{
return redirect('/auth/login');
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question