designbycode / eloquent-datatable
Create eloquent datatables
Fund package maintenance!
designbycode
Requires
- php: ^8.2
- illuminate/contracts: ^11.0
- spatie/laravel-package-tools: ^1.16
Requires (Dev)
- larastan/larastan: ^v2.9.2
- laravel/pint: ^v1.15.1
- mockery/mockery: ^1.6
- nunomaduro/collision: ^v8.1.1
- orchestra/testbench: ^9.0.0
- pestphp/pest: ^v2.34
- pestphp/pest-plugin-arch: ^v2.7.0
- pestphp/pest-plugin-faker: ^2.0
- pestphp/pest-plugin-laravel: ^v2.3.0
- phpstan/extension-installer: ^1.3
- phpstan/phpstan-deprecation-rules: ^1.1
- phpstan/phpstan-phpunit: ^1.3
- spatie/laravel-ray: ^1.35
README
An Eloquent way to build datatables.
Installation
You can install the package via composer:
composer require designbycode/eloquent-datatable
Usage
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
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.