laravel-datatables maintained by designbycode
Description
This package is the backend implementation for creating datatables for Laravel modal.
Author
Last update
2024/07/08 09:20
(dev-dependabot/github_actions/dependabot/fetch-metadata-2.2.0)
License
Downloads
40
Tags
Create Laravel data tables
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.