PHPackages                             amirulislam/laravel-simplify-crud - 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. amirulislam/laravel-simplify-crud

ActiveLibrary[Admin Panels](/categories/admin)

amirulislam/laravel-simplify-crud
=================================

A powerful Laravel CRUD generator — generates Model, Migration, Controller, Request, Routes and Views from a single artisan command.

v1.0.0(today)01↑2900%MITPHPPHP ^8.2

Since Jul 23Pushed todayCompare

[ Source](https://github.com/Amir-16/laravel-simplify-crud)[ Packagist](https://packagist.org/packages/amirulislam/laravel-simplify-crud)[ RSS](/packages/amirulislam-laravel-simplify-crud/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (7)Versions (2)Used By (0)

Laravel Simplify CRUD
=====================

[](#laravel-simplify-crud)

[![Latest Version on Packagist](https://camo.githubusercontent.com/a4c13caa0bcee28f4b204cdf07826bfb68cea1543bfcc213bf6f50be46adedd5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616d6972756c69736c616d2f6c61726176656c2d73696d706c6966792d637275642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/amirulislam/laravel-simplify-crud)[![Total Downloads](https://camo.githubusercontent.com/3afaee0eced1a0d47b3f7bf27cf8aa3cc0730dfeae5fdcbf819438664690a792/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616d6972756c69736c616d2f6c61726176656c2d73696d706c6966792d637275642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/amirulislam/laravel-simplify-crud)[![PHP Version](https://camo.githubusercontent.com/fca6a5abe8cb8ca5a09d7514f79421a5acfc883e66c5e71627c5051291b2c4ce/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e322532422d626c75653f7374796c653d666c61742d737175617265)](https://php.net)[![Laravel](https://camo.githubusercontent.com/95ab9270d0b5151c57d95bcc15098b1b34f72693dd76d50e42c82a422190ee61/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d3130253230253743253230313125323025374325323031322d7265643f7374796c653d666c61742d737175617265)](https://laravel.com)[![License: MIT](https://camo.githubusercontent.com/152aa2a37725b9fd554b28ff24d270f6071c67927a63e6d635a55c8e188e20c7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e3f7374796c653d666c61742d737175617265)](LICENSE)

Generate a complete CRUD scaffold from a single artisan command.

One command creates your **Model**, **Migration**, **Controller**, **Form Requests**, **Routes**, and **Blade Views** — all properly named, humanized, and wired together.

```
php artisan simplify:crud ProductCategory --fields="name:string,price:decimal,is_active:boolean"
```

---

What Gets Generated
-------------------

[](#what-gets-generated)

Running the command above produces:

```
app/Models/ProductCategory.php
app/Http/Controllers/ProductCategoryController.php
app/Http/Requests/StoreProductCategoryRequest.php
app/Http/Requests/UpdateProductCategoryRequest.php
database/migrations/2026_01_01_000000_create_product_categories_table.php
routes/web.php  ← Route::resource appended
resources/views/product-categories/index.blade.php
resources/views/product-categories/create.blade.php
resources/views/product-categories/edit.blade.php
resources/views/product-categories/show.blade.php

```

Then just run:

```
php artisan migrate
```

And visit `/product-categories` in your browser.

---

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

[](#requirements)

- PHP 8.2+
- Laravel 10, 11, or 12

---

Installation
------------

[](#installation)

```
composer require amirulislam/laravel-simplify-crud
```

Laravel auto-discovers the package. No manual registration needed.

---

Basic Usage
-----------

[](#basic-usage)

```
# Minimal — just a model name
php artisan simplify:crud Post

# With fields
php artisan simplify:crud Post --fields="title:string,body:text,published_at:datetime:nullable"

# API only (no Blade views)
php artisan simplify:crud Post --fields="title:string,body:text" --api

# With soft deletes
php artisan simplify:crud Post --fields="title:string" --soft-deletes

# Overwrite existing files
php artisan simplify:crud Post --fields="title:string" --force
```

---

Field Definition Format
-----------------------

[](#field-definition-format)

Fields are comma-separated. Each field follows this pattern:

```
name:type
name:type:nullable
name:type:unsigned
name:type:nullable:unsigned
name:decimal:precision:scale
name:enum:value1:value2:value3

```

### Examples

[](#examples)

```
--fields="title:string"
--fields="title:string,body:text:nullable,price:decimal:10:2,is_active:boolean"
--fields="status:enum:draft:published:archived"
--fields="avatar:image:nullable"
--fields="views:integer:unsigned"
```

---

Supported Field Types
---------------------

[](#supported-field-types)

TypeMigration ColumnValidationInput`string``string()``string|max:255`text`text``text()``string`textarea`longtext``longText()``string`textarea`integer``integer()``integer`number`bigint``bigInteger()``integer`number`smallint``smallInteger()``integer`number`decimal``decimal(8, 2)``numeric`number`float``float()``numeric`number`double``double()``numeric`number`boolean``boolean()``boolean`checkbox`date``date()``date`date`datetime``dateTime()``date`datetime-local`time``time()``date_format:H:i`time`json``json()``array`textarea`enum``enum([...])``string|in:...`select`uuid``uuid()``uuid`text`file``string()``file|max:2048`file`image``string()``image|max:2048`file---

Available Options
-----------------

[](#available-options)

OptionDescription`--fields=`Comma-separated field definitions`--api`Generate API controller and routes only — no Blade views`--soft-deletes`Add `SoftDeletes` to model and `softDeletes()` to migration`--force`Overwrite existing files---

Naming — Humanized Automatically
--------------------------------

[](#naming--humanized-automatically)

Give the model name in any common format. The package handles the rest.

InputAccepted`ProductCategory`✓ StudlyCase`product_category`✓ snake\_case`productcategory`✓ lowercaseEverything is derived correctly:

UsageValueClass name`ProductCategory`Table name`product_categories`Route prefix`product-categories`View folder`product-categories`Page heading`Product Categories`Field labels`Product Category`Variable name`$productCategory`---

View Themes
-----------

[](#view-themes)

Blade views are generated for **Tailwind CSS** (default) or **Bootstrap 5**.

Change the theme in config:

```
// config/simplify-crud.php
'view_theme' => 'tailwind',  // or 'bootstrap'
```

Or set it per-environment:

```
SIMPLIFY_CRUD_THEME=bootstrap
```

---

Configuration
-------------

[](#configuration)

Publish the config file to customise paths, namespaces, and defaults:

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

```
// config/simplify-crud.php

return [
    'paths' => [
        'model'      => app_path('Models'),
        'controller' => app_path('Http/Controllers'),
        'request'    => app_path('Http/Requests'),
        'migration'  => database_path('migrations'),
        'views'      => resource_path('views'),
        'routes'     => base_path('routes/web.php'),
        'api_routes' => base_path('routes/api.php'),
    ],

    'namespaces' => [
        'model'      => 'App\\Models',
        'controller' => 'App\\Http\\Controllers',
        'request'    => 'App\\Http\\Requests',
    ],

    'view_theme'  => env('SIMPLIFY_CRUD_THEME', 'tailwind'),
    'timestamps'  => true,
    'soft_deletes' => false,
];
```

---

Customising Stubs
-----------------

[](#customising-stubs)

Publish the stubs to your project and edit them freely:

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

Stubs are placed in `stubs/simplify-crud/`. The package checks there first before falling back to its own stubs — so you only need to publish the ones you want to change.

### Available stubs

[](#available-stubs)

```
stubs/simplify-crud/
├── model.stub
├── migration.stub
├── controller.stub
├── api-controller.stub
├── store-request.stub
├── update-request.stub
├── route.stub
├── api-route.stub
└── views/
    ├── tailwind/
    │   ├── index.stub
    │   ├── create.stub
    │   ├── edit.stub
    │   └── show.stub
    └── bootstrap/
        ├── index.stub
        ├── create.stub
        ├── edit.stub
        └── show.stub

```

### Stub placeholders

[](#stub-placeholders)

PlaceholderExample value`{{ ModelName }}``ProductCategory``{{ modelName }}``productCategory``{{ model_name }}``product_category``{{ ModelNamePlural }}``ProductCategories``{{ model_name_plural }}``product_categories``{{ HumanName }}``Product Category``{{ HumanNamePlural }}``Product Categories``{{ table_name }}``product_categories``{{ route_prefix }}``product-categories``{{ fillable }}``'name', 'price'``{{ migration_fields }}``$table->string('name');``{{ store_validation_rules }}``'name' => 'required|string|max:255'`---

Testing
-------

[](#testing)

```
composer test
```

Requires [Composer](https://getcomposer.org) dependencies to be installed first:

```
composer install
./vendor/bin/pest
```

---

Changelog
---------

[](#changelog)

See [CHANGELOG.md](CHANGELOG.md) for release history.

---

License
-------

[](#license)

MIT — see [LICENSE](LICENSE) for details.

---

Author
------

[](#author)

**Amirul Islam** —

Built with care as a production-ready Laravel package following SOLID principles.

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance100

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

0d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/31119525?v=4)[Amirul Islam](/maintainers/Amir-16)[@Amir-16](https://github.com/Amir-16)

---

Top Contributors

[![Amir-16](https://avatars.githubusercontent.com/u/31119525?v=4)](https://github.com/Amir-16 "Amir-16 (1 commits)")

---

Tags

laravelgeneratorcode generatorscaffoldartisancrud

###  Code Quality

TestsPest

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/amirulislam-laravel-simplify-crud/health.svg)

```
[![Health](https://phpackages.com/badges/amirulislam-laravel-simplify-crud/health.svg)](https://phpackages.com/packages/amirulislam-laravel-simplify-crud)
```

###  Alternatives

[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M245](/packages/laravel-ai)[illuminate/queue

The Illuminate Queue package.

21332.6M1.7k](/packages/illuminate-queue)[erag/laravel-lang-sync-inertia

A powerful Laravel package for syncing and managing language translations across backend and Inertia.js (Vue/React/Svelte) frontends, offering effortless localization, auto-sync features, and smooth multi-language support for modern Laravel applications.

4925.3k](/packages/erag-laravel-lang-sync-inertia)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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