Closed sayyowatsup closed 8 years ago
@sayyowatsup, you declare your route as post which is causing your issue. Change it to get and it should work fine.
Route::post('/getreport','DatatablesController@anyData');
// to
Route::get('/getreport','DatatablesController@anyData');
Thx for ur help,the prob solved!
Hi,
I am currently using datatables in Laravel 5.2, it seems like I can successfully pass the JSON data but failed to render view. I really dunno wat is wrong here.
Here is my Datatable Controller code:
Here is my view:
And here is my route:
This is my JSON data:
And one more thing,if I want my dropdown to display options from developer column in Event Model,how shud I change my code?