mercredi 30 octobre 2019

Laravel fetch raw query result

I don't want laravel to format my query result to an array or object ..etc. All I want, is to run the result set from database and then I will manually do the fetch myself in my custom code.

At the moment, I ran my select query and get my result in an array. The reasons for that, because the result is huge and I want to stream it directly to API.

$result = self::$db->select('select * from customer');

How can I tell laravel, to return my query result set without any format at all?



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2PBT4KT
via IFTTT

Aucun commentaire:

Enregistrer un commentaire