laravel-datatables: DataTables warning: table id=mytable- Ajax error.
can I ask some help why it is not working.is there some files that are missing ?
Thank you in advance.
$(function() {
$('#mytable').DataTable({
processing: true,
serverSide: true,
ajax: '/admin/enrollment/all_list'
});
});
Route::get('admin/enrollment/all_list', 'Admin\EnrollmentController@getEnroll');
//EnrollmentController
public function getEnroll(){
$users = User::select(['studentid','fname','lname']);
return Datatables::of($users)->make();
}
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 17 (6 by maintainers)
@faazlila maybe try clearing the cache and config.
/public/css/datatables.bootstrap.css
and/public/images/loading_bar.gif
or try adding this on your css.