F
Filament16mo ago
Jacob

Change query results

Is it possible to change the results of the Eloquent query on the table? It is already possible to change the query using
->modifyQueryUsing()
->modifyQueryUsing()
, but is it also possible to change the results of the query? (E.g. add/remove items)
3 Replies
josef
josef16mo ago
You can do that using the query
Jacob
JacobOP16mo ago
How can I add non existing records to the results?
cheesegrits
cheesegrits16mo ago
I'm not even going to ask why you need to do this, but you could union() the query with whatever you want to add. But if they are literally non existent, having rows without valid kets will break stuff.
Want results from more Discord servers?
Add your server