Laravel Datatables Fractal

yajra/laravel-datatables-fractal image

Laravel Datatables Fractal stats

Downloads
3.1M
Stars
94
Open Issues
1
Forks
18

View on GitHub →

Laravel DataTables Fractal Plugin.

Laravel DataTables Fractal Plugin Summary

The Laravel DataTables Fractal Plugin is a powerful extension for the Laravel DataTables package, designed to transform server-side responses using Fractal. This integration facilitates the management and delivery of complex data structures in an efficient and scalable manner.

Key Features

  • Integration with Fractal: Allows for the transformation of data output from Laravel DataTables through Fractal, which is great for working with API responses.
  • Support for Laravel 10.x: Compatible with the latest versions of Laravel, ensuring modern applications can leverage its capabilities.
  • Easy Installation: Can be quickly installed via Composer, and includes optional publishing of configurations and assets.

Installation

Install the package with Composer:

composer require yajra/laravel-datatables-fractal

Optional Configuration

For Laravel 5.5 and above, the service provider is auto-registered. For older versions, manually register it in your config/app.php:

Yajra\DataTables\FractalServiceProvider::class

To publish the configuration and assets, use:

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

Usage

After installation, start using it to enhance your DataTables with advanced response transformations using Fractal, making data handling more robust and flexible.

Documentation

For more detailed documentation, visit the official documentation page.

Compatibility

The package maintains compatibility with multiple versions of Laravel:

  • Laravel 8.x and below: version 1.x of the package
  • Laravel 9.x: version 9.x of the package
  • Laravel 10.x: version 10.x of the package

Contributing and Support

Contributions are welcome, and for security issues, contact directly via email. Full details are available in the package's GitHub repository.

This summary provides a concise overview of the Laravel DataTables Fractal Plugin, outlining its primary functionalities, installation process, and usage within Laravel applications. For developers looking to refine data handling and presentation in their Laravel projects, this package is a valuable addition.

Cube

Laravel Newsletter

Join 40k+ other developers and never miss out on new tips, tutorials, and more.


Yajra Laravel Datatables Fractal Related Articles

Laravel 5.5 Responsable Interface for Responses image

Laravel 5.5 Responsable Interface for Responses

Read article
What is the one package you install in all Laravel projects? image

What is the one package you install in all Laravel projects?

Read article
Lumen and Fractal image

Lumen and Fractal

Read article
Securing Laravel logo

Securing Laravel

The essential security resource for Laravel devs, covering everything you need to keep your apps secure. Sign up to receive weekly security tips and monthly in depth articles, diving deep into security concepts you need to know!

Securing Laravel
Curotec logo

Curotec

World class Laravel experts with GenAI dev skills. LATAM-based, embedded engineers that ship fast, communicate clearly, and elevate your product. No bloat, no BS.

Curotec
Statamic logo

Statamic

The drop-in ready Laravel CMS you’re been waiting for. Go full-stack or headless, flat file or database – it’s up to you.

Statamic
Lucky Media logo

Lucky Media

Get Lucky Now - the ideal choice for Laravel Development, with over a decade of experience!

Lucky Media
Celebian logo

Celebian

Celebian is a social media marketing agency specializing in helping their clients go viral on TikTok. Whether you're looking to reach a bigger audience or gain more Tiktok followers, likes, and views, they've got you covered.

Celebian
Tighten logo

Tighten

We help companies turn great ideas into amazing apps, products, and services.

Tighten