Closed ghost closed 8 years ago
Yeah, you will have to be more especific, amm how are you getting the data from laravel? and what variable has that data?, i can only asume its $scope.contents
but i dont know how you get that data and also you are not using ES6 syntax so, are you using this starter or you just asking for help?
I think the issue here is that you can't use getList()
if your api is returning a JSON object.
You would need to explicitly return the array contents.
class UsersController{
public function get(){
$users = App\User::get();
return $users;
}
}
class UsersController{
public function get(){
$users = App\User::get();
return $users->toArray();
}
}
Yep, errors are gone and "return $users->toArray();" works, thanks a lot!
However my table is empty, but I think thats because response array contains to much data fields =)
Hi
I'm trying to show data in my table, but browser throws this error
And table shows no data.
My table directive has orderBy filter
I get data with getList function and Laravel sends this response
Tried to fix with this and this guide, but no success.