-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrate with laravel datatable #8
Comments
It's simple, just 3 lines of code as your controller method body: $query = YourModel::query();
$dt = DataTables::of($query);
return $dt->make(true); Demo: http://laratt.niiknow.org/home/contacts Demo has extra code to support/demonstrate exporting. As for using the component on the client-side, it's simply pointing/configuring the I calculate the route as: url: that.$app.apiRoute(that.rName, that.rPath), In reality, this is the resulting URL: https://laratt.niiknow.org/api/v1/democontact/example?x-tenant=test&x-api-key=demo123 Or you can play around with the API at: https://laratt.niiknow.org/api/documentation Phewwww, that was a lot of work for a simple end-to-end demo of 3 lines of code that you can simply write as |
Old issue with no updates. |
Hi , do you have any working example or do you know how it is possible to integrate it with Laravel datatables (yajira)
The text was updated successfully, but these errors were encountered: