Vote count: 0
I was wondering if we could query already queried table. Like this:
$results = Table::where('name','like', '%'.$request['name'].'%')->get();
$results = $results::where('surname', 'like', '%'.$request['surname'.'%'])->get();
I try to do something like this, because I have many options to query from table, and some of them may be empty. So in order not to check all possibilities, and writing different queries, it would be easier in this way. Thanks in advance
asked 57 secs ago
Query Queried Table Laravel
Aucun commentaire:
Enregistrer un commentaire