I've got a route that returns Software::paginate(15);.
So what is the best practice if I want to show all software items within a dropdown menu? Should I make
a separate route that returns Software::alll(); or are there better ways of handling this?
@SaeedPrez Yes I'm making ajax calls. Great solution but one more question I'm using REST so Route::resource('software', 'Software\SoftwareController');
With your solution I cannot do /software anymore but I've to make /software/{pagination}. Is this good practice?
@lars64 as I wrote earlier, you have to make the parameter optional...
And generally, Route::resource() is pretty bad, I would be more explicit with my routes. For example you want the index method to accept an optional parameter, so you need it to be..