
Generate route with query string in Laravel
Lately I’ve been messing around with Laravel and while building a component for my application I’ve noticed that Laravel doesn’t generate a url with query strings. The “pretty urls” work just fine example.com/search/term
, but what I really needed in my case was url with a query string like example.com?search=term
.
For the purposes of this blog post, I choose a basic example of indexing all movies stored in our database and filtering the data based on movie’s name.
Continue reading “Generate route with query string in Laravel”