M
M
MAILBOX2018-09-07 21:19:38
PHP
MAILBOX, 2018-09-07 21:19:38

Where can I find examples of how to correctly compose database queries dynamically?

Suppose I have a filter in which 20+ different checkboxes, selects, inputs, respectively, based on this data, you need to form a query to the database. So here's the question of how this is done dynamically in PHP , just wanted to see examples before reinventing the wheel.
5b92c122be16b246189489.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
bkosun, 2018-09-07
@bkosun

https://laravel.com/docs/5.6/eloquent#query-scopes
https://www.doctrine-project.org/projects/doctrine...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question