Skip to content
Advertisement

Search for an item using a dropdown list in Laravel that returns the results onto a view

I’m trying to search for the items that are listed in the dropdown list, however I seem to get this error Controller@action not defined however in the web.php I have defined that controller so I’m not sure why that error is occurring. So I can’t test to see if the query in controller is returning the correct results. Thank you.

Web.php

JavaScript

Blade

JavaScript

Controller

JavaScript

Advertisement

Answer

It seems you are using a modules package so use the controller and action names along with the namespace something like:

JavaScript

Or just do:

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement