designbycode / laravel-datatables
This package is the backend implementation for creating datatables for Laravel modal.
v2.0.2
2024-03-30 06:17 UTC
Requires
- php: ^8.2
- doctrine/dbal: ^4.0.1
- illuminate/contracts: ^v11.0.6
- spatie/laravel-package-tools: ^1.16.0
Requires (Dev)
- larastan/larastan: ^v2.9.2
- laravel/pint: ^v1.14.0
- nunomaduro/collision: ^v8.1.1
- orchestra/testbench: ^v9.0.0
- pestphp/pest: ^v2.34.4
- pestphp/pest-plugin-arch: ^v2.7.0
- pestphp/pest-plugin-laravel: ^v2.3.0
- phpstan/extension-installer: ^1.3.1
- phpstan/phpstan: ^1.10.62
- phpstan/phpstan-deprecation-rules: ^1.1.4
- phpstan/phpstan-phpunit: ^1.3.16
- spatie/laravel-ray: ^1.35.1
- dev-main
- v2.0.2
- 2.0
- v1.4.2
- v1.4.1
- v1.4.0
- v1.3.5
- v1.3.4
- v1.3.3
- v1.3.2
- v1.3.1
- v1.3.0
- v1.2.1
- v1.2.0
- v1.1.1
- v1.1.0
- dev-dependabot/github_actions/dependabot/fetch-metadata-2.2.0
- dev-dependabot/github_actions/stefanzweifel/git-auto-commit-action-5
- dev-dependabot/github_actions/ramsey/composer-install-3
- dev-dependabot/github_actions/actions/checkout-4
This package is auto-updated.
Last update: 2024-12-08 08:20:06 UTC
README
This package is the backend implementation for creating datatables for Laravel modal.
Installation
You can install the package via composer:
composer require designbycode/laravel-datatables
You can publish the config file with:
php artisan vendor:publish --tag="datatables-config"
Usage
use Designbycode\Datatables\DataTableController; class CategoriesDataTable extends DataTableController { public function builder(): Builder { return Category::query(); } }
Use with InertiaJs
use Designbycode\Datatables\DataTableController; use Inertia\Inertia; use Inertia\Response; class CategoriesDataTable extends DataTableController { public function builder(): Builder { return Category::query(); } public function index(): Response { return Inertia::render('Categories', ) } }
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.