An Eloquent way to build datatables.
You can install the package via composer:
composer require designbycode/eloquent-datatable
To create a datatable controller you have to run the following command. This will generate a new controller with all the needed files.
php artisan datatable:create PostsDatatableController
The artisan command comes with 2 optional parameters.
The --model
parameter defines which model to use for the datatable. The --middleware
parameter defines which middleware to use for the datatable.
php artisan datatable:create PostsDatatableController --model=Post --middleware=auth,auth.admin
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.