Download the PHP package takielias/tablar-crud-generator without Composer
On this page you can find all versions of the php package takielias/tablar-crud-generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download takielias/tablar-crud-generator
More information about takielias/tablar-crud-generator
Files in takielias/tablar-crud-generator
Package tablar-crud-generator
Short Description Laravel Tablar Crud Generator based on https://github.com/takielias/tablar
License MIT
Informations about the package tablar-crud-generator

Pairs with Laravel Tablar Admin Dashboard
Scaffolds a complete CRUD set (Model, Controller, Views, Route) for an EXISTING database table via one artisan command. Built for projects already running takielias/tablar (Tabler-based admin layout) and pairs naturally with takielias/tablar-kit and takielias/lab.
Inspired by ibex/crud-generator.
Features
- Cross-database — works on SQLite, MySQL/MariaDB, PostgreSQL, SQL Server via Laravel's driver-agnostic Schema API. Test suite passes on all three drivers in CI.
- Generates a Model with Eloquent relations,
$fillable, validation$rules, and optionalSoftDeletes. - Generates a resource Controller with all 7 CRUD actions.
- Generates Bootstrap 5 / Tabler-styled views (
index,create,edit,show,form,form-field,view-field). - Appends a
Route::resource(...)entry toroutes/web.php. - Submit buttons use takielias/lab's
ajax-submit-buttonclass for native fetch + spinner UX out of the box. - Tabler icon classes (
<i class="ti ti-...">) match the published tablar layout idiom. - AI-friendly: ships Laravel Boost guidelines + skills under
resources/boost/for in-editor agent help.
Requirements
| Component | Minimum |
|---|---|
| PHP | 8.2 |
| Laravel | 10.32+ / 11.x / 12.x / 13.x (uses Schema::getColumns/getIndexes/getForeignKeys) |
| Tablar | takielias/tablar (recommended for the published tablar::page layout) |
Installation
Service provider auto-discovered via extra.laravel.providers.
Optional: publish the config (only needed if you want to customize stub paths or naming):
Usage
The generator reads the live database schema to infer field types — so the table must already exist before running:
The argument is the DB table name (plural, snake_case). Class names + view paths are inferred via Str::studly(Str::singular($table)).
Options
Examples:
What gets generated
| File | Notes |
|---|---|
app/Models/Product.php |
$fillable from columns, $rules from NOT NULL constraints, optional SoftDeletes if a deleted_at column exists |
app/Http/Controllers/ProductController.php |
Resource controller (index/create/store/show/edit/update/destroy) using Product::paginate(10) |
resources/views/product/index.blade.php |
Tabler list view with action dropdown |
resources/views/product/create.blade.php |
Includes form.blade.php |
resources/views/product/edit.blade.php |
Includes form.blade.php with method spoofing |
resources/views/product/show.blade.php |
Read-only detail page |
resources/views/product/form.blade.php |
Field rendering wrapper, ends with <button class="btn btn-primary ms-auto ajax-submit-button has-spinner">Submit</button> |
resources/views/product/form-field.blade.php |
Per-column form field markup |
resources/views/product/view-field.blade.php |
Per-column read-only markup |
| Route entry | Appended to routes/web.php: Route::resource('/products', App\Http\Controllers\ProductController::class); |
The generator does NOT create the migration. Define + migrate the table first.
Layout convention
Generated views follow tablar's published layout idiom:
Override crud.layout in config/crud.php to extend a different master layout.
Regeneration safety
The generator overwrites without prompting and appends Route::resource(...) on every run (no idempotency check). Workflow when re-scaffolding:
Database support
| Driver | Status |
|---|---|
| SQLite | ✅ tested |
| MySQL / MariaDB | ✅ tested |
| PostgreSQL | ✅ tested |
| SQL Server | ✅ supported (same Schema API surface) |
Schema introspection uses Schema::getColumns(), Schema::getIndexes(), and Schema::getForeignKeys() — driver-agnostic since Laravel 10.32.
AI guidelines (Laravel Boost)
This package ships Boost-compatible guidelines + skills under resources/boost/. Consumer apps with laravel/boost installed get them automatically:
Once published, your AI agent (Claude Code, Cursor, Copilot, etc.) can use the tablar-crud-generator-development skill to answer questions about flag semantics, generated file shapes, and stub customization without reading source.
Example

Contact
Taki Elias — @takiele — ebuz.xyz — [email protected]
