laravel获取函数空数据

I'm using angularjs with laravel in my project.

I'm trying to get items from a table. 642 rows. On my localhost, the browser returns the items in the html table but on the server, it returns an empty data.

Any help ? (same code localhost-server)

ok I solved my problem, it was the max memory in the php.ini (16M) we could put it to 128M, but I don't know how many items we will add later on So I used laravel pagination with bootpag js plugin, and now I get in every page (1,2,3 ..etc) 15 items using ->paginate() in my laravel query.