I've created the ArticleController controller of type resource , so I have verbs and standard routes . I use the index method of my controller to list all (paginated) articles:
$artigos = Artigo::orderBy('edicao', 'desc')->paginate(25);
return view('painel.artigos.listar', compact('artigos'));
The issue is that in my view listar.blade.php , in addition to listing everything, I also have a search input, which theoretically does the search and populate that same view, so I know the index method of the resource does not accept input parameters, in this case it is best to search for another controller and point back to the view?
I'm using Laravel 5.6