To use data tables in laravel 11 project, below steps are required.
To use data tables in laravel project, yajra datatables plugin is used. Below are the steps to use yajra data tables in laravel project.
Requirement:
- Laravel 11
- jQuery DataTables v1.10.x
Installation:
Run the following command in your project to get the latest version of the package:
composer require yajra/laravel-datatables-oracle:”^11.0″
Configuration:
Open the file config/app.php
for Laravel 11 then add following service provider.
‘providers’ => [
// …
Yajra\DataTables\DataTablesServiceProvider::class,
],
After completing the step above, use the following command to publish configuration & assets:
php artisan vendor:publish –tag=datatables