jeudi 5 septembre 2019

want to assign the paginate data returned from laravel pagination to a new array

when i change the the data returned from pagination it does nothing

$providers= Provider::paginate(25);
$newData=array();

do some processing on the order of items and push to $newData

$providers->data=$newData;

or

$providers['data']=$newData;

the output is still the same and doesn't change



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire