L
L
lynnikvadim2015-12-25 04:31:49
Laravel
lynnikvadim, 2015-12-25 04:31:49

How to organize routes in Laravel?

There is a page "sofoieo.ru/cat/454/340t"
On this page there is a search form c referring to the route address

Route::get('/search-org', '[email protected]');

There is a method in the method return view('View', ['....'=>$......]);
After I filled in the search field and sent the data, I am redirected to the page "sofoieo.ru/cat/454/340t/search-org"
But there is no such route, and I get an error.
How to make it "sofoieo.ru/search-org"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vyacheslav Barsukov, 2015-12-25
@lynnikvadim

Route::get('search-org', '[email protected]');
How is your form built? You look at the action.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question