Skip to content
Icon

WARNING You're browsing the documentation for an upcoming version of Laravel DataTables. The documentation and features of this release are subject to change.

Fractal Plugin Installation

Github: https://github.com/yajra/laravel-datatables-fractal

Run the following command in your project to get the latest version of the plugin:

composer require yajra/laravel-datatables-fractal:^9.0

Configuration

This step is optional if you are using Laravel 5.5

Open the file config/app.php and then add following service provider.

'providers' => [
// ...
Yajra\DataTables\DataTablesServiceProvider::class,
Yajra\DataTables\FractalServiceProvider::class,
],

After completing the step above, use the following command to publish configuration & assets:

php artisan vendor:publish --tag=datatables-fractal --force