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?