Support the ongoing development of Laravel.io →
posted 10 years ago
Input
Last updated 2 years ago.
0

When creating route laravel will check if there are any required parameters, anything eles will be appended to url as basic get params.

Form has 'url' => 'admin/pretraga' url and is posted as get. So you should create route that is just simple get route like so

Route::get('admin/pretraga', $pretraga_c.'@getPretraga');

But you have different urls provided. So you should fix your group. Its prefixed url should be the same as is in the form.

Last updated 2 years ago.
0

I think thiss will work. I provided just part of my routes file, so there is route group above 'pretraga' part. Thanks :)

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.