Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Laravel Datatables Editor

Laravel Datatables Editor Laravel Package

yajra/laravel-datatables-editor

Laravel DataTables Editor plugin for handling DataTables Editor CRUD actions (create, edit, remove) through Laravel DataTables. Requires Laravel 12.x, DataTables 2.x, and a premium DataTables Editor license.

View on GitHub
Deep Wiki
Context7

yajra/laravel-datatables-editor is a plugin for Laravel DataTables that adds server-side support for the DataTables Editor JavaScript library. It lets you wire up create, edit, and remove actions through Editor's fluent PHP API while keeping your existing DataTables query builder and Blade views, so full CRUD interfaces take minutes instead of boilerplate.

A premium DataTables Editor license is required to use the client-side library.

  • Full CRUD support via Editor's PHP Editor class
  • Seamless integration with Laravel DataTables query builders
  • Works with DataTables 2.x and Editor 2.x
  • Supports Laravel 11.x, 12.x, and 13.x
Frequently asked questions about Laravel Datatables Editor
How do I install yajra/laravel-datatables-editor in a Laravel application?
Install it with Composer using the version that matches your Laravel release, for example composer require yajra/laravel-datatables-editor:^13 on Laravel 13. The package builds on yajra/laravel-datatables, so that dependency and its service provider should already be in place. After that you publish the config and follow the documented installation guide, which includes an Artisan generator for Editor action classes. You will also need to pull in the DataTables Editor JavaScript library on the client side.
Which Laravel versions does yajra/laravel-datatables-editor support?
The package ships one major branch per Laravel major, so version matching is strict rather than flexible. Laravel 5 through 10 use the 1.x line, Laravel 11 uses 11.x, Laravel 12 uses 12.x and Laravel 13 uses 13.x. It also expects Laravel DataTables 12.x, DataTables 2.x and Editor 2.x on the current lines. Plan your Composer constraint accordingly, because mixing branches will not resolve cleanly.
Do I need a paid DataTables Editor license to use this package?
Yes. The PHP side of yajra/laravel-datatables-editor is MIT licensed, but it is only an adapter for the commercial DataTables Editor library, and a premium Editor license is required to use that client library legally. Budget for per-developer or per-site seats and confirm which environments the license covers. Renewal ownership and the annual cost should be an explicit decision before you adopt the package, not an afterthought.
Can I use this package with Vue, React, Inertia, or Livewire instead of jQuery?
This package is designed for a conventional server-rendered Blade page with jQuery DataTables and the licensed DataTables Editor client on the front end. If your admin surface is a React, Vue, Inertia, or Livewire SPA, the client half of the value proposition does not apply, and you would effectively be reintroducing a jQuery grid alongside your existing component stack. In that case a native Laravel CRUD approach or a Filament-style admin panel is usually the better fit. Front-end topology, not backend capability, is the deciding factor here.
How do I generate DataTables Editor action classes with Artisan?
The documented install path includes an Artisan generator that scaffolds Editor action classes, which keeps create, edit and remove logic out of your controllers. Each generated class is a plain PHP class where you declare the model, fields and validation rules, and you register it against the DataTables Editor instance. Because they are ordinary classes, you can inject services, dispatch jobs and cover them with tests like any other Laravel code. Custom action classes are also supported when you need behaviour beyond plain CRUD.
How do I validate create and edit requests in DataTables Editor actions?
Validation lives in your Editor action classes, so you use Laravel's own validator and rule conventions rather than a separate scheme. Editor sends field-level payloads for create and edit operations, and the adapter maps those onto Eloquent attributes before the write occurs. That means standard rules, custom rule objects and authorization checks all apply as normal. Anything that must be enforced regardless of the client, such as field-level authorization, should be verified explicitly rather than assumed.
Does yajra/laravel-datatables-editor handle file and image uploads?
Yes, upload handling is treated as a first-class feature alongside CRUD, inline editing and bulk operations. Editor posts files through its own upload protocol, and the adapter routes them into standard Laravel storage so you can apply disks, visibility settings and validation. You still own decisions about where files land, how they are named and how they are cleaned up. Treat upload validation and storage configuration as your responsibility rather than something the package decides for you.
Does the package support bulk edit and bulk delete operations?
Bulk edit and bulk delete are supported, along with create, read, inline edit and custom actions. Because the server side translates Editor payloads into Eloquent operations, a bulk action is still subject to your query builders, model events and validation rules. That is useful, but it also means a wide bulk action can touch many rows quickly, so scope it carefully. Consider soft deletes or an audit trail where recovery matters, since restore semantics need to be verified for your setup.
Is Model::unguard safe with generated DataTables Editor CRUD?
Unguarding is convenient for quickly generated CRUD screens, but it removes mass-assignment protection across your models and is dangerous in production. Editor payloads contain exactly the fields the browser sends, so an unguarded model will accept anything a crafted request includes. Prefer explicit fillable or guarded definitions, or scope assignment per action class. If unguarding is used at all, make it a reviewed, documented decision rather than a default that quietly spreads.
How do I handle upgrades and maintenance for this package?
Expect a forced upgrade cadence, because each Laravel major pairs with a matching package major and the DataTables Editor JavaScript asset must stay pinned in lock-step with DataTables 2.x. That leaves you tracking two independent release calendars plus a license renewal clock. Adoption is thin relative to the widely used yajra/laravel-datatables core, and the project is effectively single-maintainer, so support surface is small. The mitigation is that the adapter's code surface is small and the protocol is documented, making it forkable in days if upstream lags a Laravel release.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
dbravoan/dbcms-admin-theme-dbcms
dbravoan/dbcms-theme-db-cyber
dbravoan/dbcms-blocks-basic
dbravoan/dbcms-module-content-audit
dbravoan/dbcms-module-ai-assistant
paygate-to/paygate-php
padosoft/askmydocs-connector-base
defstudio/supercharged-carbon
bernskioldmedia/laravel-matomo
bernskioldmedia/laravel-harvest
bernskiold/laravel-data-scrubber
bernskiold/laravel-currency-converter
bernskiold/laravel-campaign-monitor
bernskioldmedia/laravel-autotranslate
siberfx/telegram-bot
roy-sandip/laravel-view-extended
gregsphotography/site-builder-core
roy-sandip/laravel-view
anodyne/blade-fluentui-icons
webx-ui/module-catalog-collections