PHPackages                             takielias/tablar-crud-generator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Admin Panels](/categories/admin)
4. /
5. takielias/tablar-crud-generator

ActiveLibrary[Admin Panels](/categories/admin)

takielias/tablar-crud-generator
===============================

Laravel Tablar Crud Generator based on https://github.com/takielias/tablar

3.2.0(2mo ago)326.2k↑54.3%6[2 issues](https://github.com/takielias/tablar-crud-generator/issues)MITPHP

Since Oct 23Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/takielias/tablar-crud-generator)[ Packagist](https://packagist.org/packages/takielias/tablar-crud-generator)[ RSS](/packages/takielias-tablar-crud-generator/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (10)Dependencies (10)Versions (20)Used By (0)

[![Laravel Tablar Crud Generator](https://camo.githubusercontent.com/fe70b8962f6f526f70b7a4e457aa69466c8d91bb725b0642c3cc1f1542a6298e/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f4c61726176656c2532305461626c61722532304372756425323047656e657261746f722e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d74616b69656c6961732532467461626c61722d637275642d67656e657261746f72267061747465726e3d746f706f677261706879267374796c653d7374796c655f31266465736372697074696f6e3d4974253237732b612b73696d706c652b435255442b67656e657261746f722b62617365642b6f6e2b4c61726176656c2b5461626c61722b266d643d312673686f7757617465726d61726b3d3026666f6e7453697a653d313235707826696d616765733d68747470732533412532462532466c61726176656c2e636f6d253246696d672532466c6f676f6d61726b2e6d696e2e737667)](https://camo.githubusercontent.com/fe70b8962f6f526f70b7a4e457aa69466c8d91bb725b0642c3cc1f1542a6298e/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f4c61726176656c2532305461626c61722532304372756425323047656e657261746f722e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d74616b69656c6961732532467461626c61722d637275642d67656e657261746f72267061747465726e3d746f706f677261706879267374796c653d7374796c655f31266465736372697074696f6e3d4974253237732b612b73696d706c652b435255442b67656e657261746f722b62617365642b6f6e2b4c61726176656c2b5461626c61722b266d643d312673686f7757617465726d61726b3d3026666f6e7453697a653d313235707826696d616765733d68747470732533412532462532466c61726176656c2e636f6d253246696d672532466c6f676f6d61726b2e6d696e2e737667)

[![Latest Version](https://camo.githubusercontent.com/f9861163c4e3caa402d1516cecaec51af8255513e676f4c13b476742a09c0d99/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f74616b69656c6961732f7461626c61722d637275642d67656e657261746f723f636f6c6f723d626c7565266c6162656c3d72656c65617365267374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/takielias/tablar-crud-generator)[![Stars](https://camo.githubusercontent.com/7e8c41bbc8b29c00831c8ce738f0db2d952fff2799a86bb04b45eefd80b9916e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f74616b69656c6961732f7461626c61722d637275642d67656e657261746f723f636f6c6f723d7267622532383036253230313839253230323438253239266c6162656c3d7374617273267374796c653d666f722d7468652d6261646765)](https://github.com/takielias/tablar-crud-generator)[![Total Downloads](https://camo.githubusercontent.com/1854e0aae8f7fa5ba1c3ab682713f6627b2b249dd53c28e3595176634d3e1c5f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f74616b69656c6961732f7461626c61722d637275642d67656e657261746f722e7376673f636f6c6f723d7267622532383234392532303131352532303232253239267374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/takielias/tablar-crud-generator)[![Forks](https://camo.githubusercontent.com/21cb8b8198c4387ce14b51f541fe2e539c64366099a132d718c098f76502bffd/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f74616b69656c6961732f7461626c61722d637275642d67656e657261746f723f636f6c6f723d7267622532383133342532303131352532303232253239267374796c653d666f722d7468652d6261646765)](https://github.com/takielias/tablar-crud-generator/network/members)[![Issues](https://camo.githubusercontent.com/56e37e2bafd419456dfba436610288376b583b69e177e6ae9c5911a9869a8b97/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f74616b69656c6961732f7461626c61722d637275642d67656e657261746f723f636f6c6f723d726762253238313334253230323339253230313238253239267374796c653d666f722d7468652d6261646765)](https://github.com/takielias/tablar-crud-generator/issues)[![Linkedin](https://camo.githubusercontent.com/65e57dee4eb0633fbca0429b13af9bcaa0e812e98f96c849653f970942fc7e9b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d4c696e6b6564496e2d626c61636b2e7376673f6c6f676f3d6c696e6b6564696e26636f6c6f723d72676261283233352532303638253230353029267374796c653d666f722d7468652d6261646765)](https://linkedin.com/in/takielias)

[ ![takielias](https://camo.githubusercontent.com/0cf29a542375e1a46e84d8bf5805a4e5c0a6ee98b6547ccdc0c55eed49d99c69/68747470733a2f2f63646e2e6275796d6561636f666665652e636f6d2f627574746f6e732f76322f64656661756c742d79656c6c6f772e706e67)](https://www.buymeacoffee.com/takielias)

### Pairs with [Laravel Tablar Admin Dashboard](https://github.com/takielias/tablar)

[](#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](https://github.com/takielias/tablar) (Tabler-based admin layout) and pairs naturally with [takielias/tablar-kit](https://github.com/takielias/tablar-kit) and [takielias/lab](https://github.com/takielias/laravel-ajax-builder).

**Inspired by** [`ibex/crud-generator`](https://github.com/awais-vteams/laravel-crud-generator).

Features
--------

[](#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 optional `SoftDeletes`.
- 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 to `routes/web.php`.
- Submit buttons use [takielias/lab](https://github.com/takielias/laravel-ajax-builder)'s `ajax-submit-button` class for native fetch + spinner UX out of the box.
- Tabler icon classes (``) match the published tablar layout idiom.
- AI-friendly: ships [Laravel Boost](https://laravel.com/docs/13.x/boost) guidelines + skills under `resources/boost/` for in-editor agent help.

Requirements
------------

[](#requirements)

ComponentMinimumPHP8.2Laravel10.32+ / 11.x / 12.x / 13.x (uses `Schema::getColumns/getIndexes/getForeignKeys`)Tablar[takielias/tablar](https://github.com/takielias/tablar) (recommended for the published `tablar::page` layout)Installation
------------

[](#installation)

```
composer require takielias/tablar-crud-generator --dev
```

Service provider auto-discovered via `extra.laravel.providers`.

Optional: publish the config (only needed if you want to customize stub paths or naming):

```
php artisan vendor:publish --tag=crud
```

Usage
-----

[](#usage)

The generator reads the **live database schema** to infer field types — so the table must already exist before running:

```
# 1. Create + edit the migration
php artisan make:migration create_products_table

# 2. Run migration (table must exist before make:crud)
php artisan migrate

# 3. Scaffold CRUD
php artisan make:crud products
```

The argument is the **DB table name** (plural, snake\_case). Class names + view paths are inferred via `Str::studly(Str::singular($table))`.

### Options

[](#options)

```
make:crud {name}
          {--route= : Custom route name}
          {--crud-name= : Custom crud name}
          {--lang= : pluralizer language}

```

Examples:

```
# Custom route segment
php artisan make:crud products --route=admin/products

# Custom class / view path name
php artisan make:crud emergencies --crud-name=Emergencies

# French / Norwegian / Portuguese / Spanish / Turkish pluralization
php artisan make:crud incidencies --lang=spanish
```

What gets generated
-------------------

[](#what-gets-generated)

FileNotes`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 `Submit``resources/views/product/form-field.blade.php`Per-column form field markup`resources/views/product/view-field.blade.php`Per-column read-only markupRoute entryAppended 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
-----------------

[](#layout-convention)

Generated views follow tablar's published layout idiom:

```
@extends('tablar::page')

@section('title', '{{modelTitle}}')

@section('content')

                List
                {{ __('{{modelTitle}}') }}

                     Create

        ...

@endsection
```

Override `crud.layout` in `config/crud.php` to extend a different master layout.

Regeneration safety
-------------------

[](#regeneration-safety)

The generator **overwrites without prompting** and **appends `Route::resource(...)` on every run** (no idempotency check). Workflow when re-scaffolding:

```
git add -A && git commit -m "wip: pre-regenerate"
sed -i '/Route::resource.*ProductController::class/d' routes/web.php
php artisan make:crud products
```

Database support
----------------

[](#database-support)

DriverStatusSQLite✅ testedMySQL / MariaDB✅ testedPostgreSQL✅ testedSQL 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)
-----------------------------

[](#ai-guidelines-laravel-boost)

This package ships Boost-compatible guidelines + skills under `resources/boost/`. Consumer apps with `laravel/boost` installed get them automatically:

```
composer require laravel/boost --dev
php artisan boost:install   # opt into "skills" feature; select takielias/tablar-crud-generator
```

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
-------

[](#example)

[![tablar-crud-generator-light](https://user-images.githubusercontent.com/38932580/197386382-562d6e3a-055a-42b8-8524-df76f70aa051.png)](https://user-images.githubusercontent.com/38932580/197386382-562d6e3a-055a-42b8-8524-df76f70aa051.png)

[![tablar-crud-generator-dark](https://user-images.githubusercontent.com/38932580/197386398-b9541389-5d63-4bcd-87f2-c4aa5d49072d.png)](https://user-images.githubusercontent.com/38932580/197386398-b9541389-5d63-4bcd-87f2-c4aa5d49072d.png)

Contact
-------

[](#contact)

Taki Elias — [@takiele](https://twitter.com/takiele) — [ebuz.xyz](https://ebuz.xyz) —

[![takielias](https://camo.githubusercontent.com/0cf29a542375e1a46e84d8bf5805a4e5c0a6ee98b6547ccdc0c55eed49d99c69/68747470733a2f2f63646e2e6275796d6561636f666665652e636f6d2f627574746f6e732f76322f64656661756c742d79656c6c6f772e706e67)](https://www.buymeacoffee.com/takielias)

###  Health Score

51

—

FairBetter than 95% of packages

Maintenance86

Actively maintained with recent releases

Popularity35

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 91.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~92 days

Recently: every ~104 days

Total

15

Last Release

64d ago

Major Versions

1.05 → 2.02023-04-08

2.5 → 3.02026-03-26

### Community

Maintainers

![](https://www.gravatar.com/avatar/fad247d1f93a5e71551ddb8719214e25ebbc427726d50359e243b7f4f2aacbfc?d=identicon)[takielias](/maintainers/takielias)

---

Top Contributors

[![takielias](https://avatars.githubusercontent.com/u/38932580?v=4)](https://github.com/takielias "takielias (41 commits)")[![gerardp](https://avatars.githubusercontent.com/u/168353?v=4)](https://github.com/gerardp "gerardp (4 commits)")

---

Tags

laravellaravel-packagecrudcrud generatorlaravel crud generatorTablar

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/takielias-tablar-crud-generator/health.svg)

```
[![Health](https://phpackages.com/badges/takielias-tablar-crud-generator/health.svg)](https://phpackages.com/packages/takielias-tablar-crud-generator)
```

###  Alternatives

[api-platform/laravel

API Platform support for Laravel

58171.6k14](/packages/api-platform-laravel)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

119.4k](/packages/tomshaw-electricgrid)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
