mercredi 26 août 2015

Get an array of integer with Laravel query builder

I have this query :

$inError = DB::table('errors')            
        ->select('fk_fact')
        ->distinct()
        ->get();

And I want it to return an array of integers instead of returning an array of objects, I don't want to loop over all the results and push the values one by one... Is there a way to do this with Laravel?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1fFTIkJ
via IFTTT

Aucun commentaire:

Enregistrer un commentaire