Category: Laravel, MySQL

Besides sharing my experience, this story is also for my reminder for other similar cases in the future.

It really helps a lot with SQL queries and really simple to use on the blade files or even as a REST API output, also it helps with the resource usage (if you notice it, especially if you call it through AJAX). Although it really simple to use but there will be times when you need to custom the queries or make a more advanced query.

The basic query is like this: So the next thing is to create a custom filter based on the input parameters.

This is more to share my experiences and a good place for me to recall this method in later similar situations.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners