This package is the backend implementation for creating datatables for Laravel modal.
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"
use Designbycode\Datatables\DataTableController;
class CategoriesDataTable extends DataTableController
{
public function builder(): Builder
{
return Category::query();
}
}
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', )
}
}
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.