[Vuejs]-Retrieving an Array with Axios in Laravel

2👍

Your $suppliers doesn’t seems an array, but a eloquent model. so try this:

return response()->json(["suppliers"=>$suppliers], 200);

And see in response.data.suppliers

** EDIT **

The problem can be the function buildEntity.
try to

$this->data->orderBy('name')->get()

Leave a comment