php – Selecting Multiple Filters Using Laravel Query Strings

Currently, I have a filter bar that works, but it only selects one filter at a time. How can I get it to select multiple filters at once by simply adding to the current query string?

That's what I have in my controller

ProductController class extends Controller
{
Public Service Index ()
{

$ products = new product;

$ requests = [];

$ columns = [
            'beertype_id', 'packaging', 'brewery_id'
        ];

foreach ($ columns as $ column) {
if (request () -> a ($ column)) {

$ products = $ products-> where ($ column, request ($ column));

$ requests[$column] = request ($ column);
}
}
$ products = $ products-> paginate (10) -> appendices ($ requests);
}
}

In my blade stencil



Would using helper () helper solve this? if so, how could I use it?