即時新手Laravel,即時試圖創建一個數據表與YajraBox擴展名。DataTables YajraBox Laravel擴展與雄辯查詢字符串篩選
林停留在Ajax控制器:
public function indexData(LotFilters $filters)
{
$lots = Lot::filter($filters)->get();
return Datatables::of($lots)->make(true);
}
這是我的路線:
Route::get('data', '[email protected]');
當我去:http://127.0.0.1:8000/data
它給了我一個錯誤:
Allowed memory size of 134217728 bytes exhausted (tried to allocate 140673944 bytes)
它想我需要建立一個分頁,但我沒有找到一個例子如何做到這一點,也許你們可以幫助我?