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

ActiveLibrary[Admin Panels](/categories/admin)

saiman/laravel-saiman-crud
==========================

A modern Laravel CRUD generator for Laravel 12 &amp; 13.

v1.0.0(today)00[2 PRs](https://github.com/dev-ankitsuman/laravel-saiman-crud/pulls)MITPHPPHP ^8.2CI passing

Since Jun 27Pushed todayCompare

[ Source](https://github.com/dev-ankitsuman/laravel-saiman-crud)[ Packagist](https://packagist.org/packages/saiman/laravel-saiman-crud)[ GitHub Sponsors](https://github.com/dev-ankitsuman)[ RSS](/packages/saiman-laravel-saiman-crud/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (11)Versions (4)Used By (0)

Laravel Saiman CRUD Generator
=============================

[](#laravel-saiman-crud-generator)

[![Latest Version on Packagist](https://camo.githubusercontent.com/e4046ea37fd3fb620526cccefabe4a63fe6de99f999c2c7c6b8ddf81e468baa9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7361696d616e2f6c61726176656c2d7361696d616e2d637275642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/saiman/laravel-saiman-crud)[![Tests](https://camo.githubusercontent.com/50e6ad649b10e9f8d8e18911304c516c585de1a3f607d5f139bbee321fe88416/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7361696d616e2f6c61726176656c2d7361696d616e2d637275642f74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/dev-ankitsuman/laravel-saiman-crud/actions/workflows/tests.yml)[![Code Style](https://camo.githubusercontent.com/caacd506a8fb78ba690c838f7ab7e796e61efca5351e73556f5a4705544b8632/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7361696d616e2f6c61726176656c2d7361696d616e2d637275642f636f64652d7374796c652e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/dev-ankitsuman/laravel-saiman-crud/actions/workflows/code-style.yml)[![Static Analysis](https://camo.githubusercontent.com/4e81c60dab8834f38a320b5a12adb84d2f424343be743284e78fe0020ceb248d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7361696d616e2f6c61726176656c2d7361696d616e2d637275642f7374617469632d616e616c797369732e796d6c3f6272616e63683d6d61696e266c6162656c3d7068707374616e267374796c653d666c61742d737175617265)](https://github.com/dev-ankitsuman/laravel-saiman-crud/actions/workflows/static-analysis.yml)[![Total Downloads](https://camo.githubusercontent.com/d196b4f4da94fb2c89bf27547a43c11359cdf1b428dd434248566e191f053e9a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7361696d616e2f6c61726176656c2d7361696d616e2d637275642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/saiman/laravel-saiman-crud)[![PHP Version](https://camo.githubusercontent.com/8cad4d3ad21df1ee7ebbf96a953c2c000b6bee6efa0bb8d1c4e192bb9a098107/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f7361696d616e2f6c61726176656c2d7361696d616e2d637275642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/saiman/laravel-saiman-crud)[![License](https://camo.githubusercontent.com/2c803c1f280c0f83c6625b769b876108a6a606a18ca4ae4608bd21f31508a96a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7361696d616e2f6c61726176656c2d7361696d616e2d637275642e7376673f7374796c653d666c61742d737175617265)](LICENSE)

Generate complete, production-ready CRUD modules for your Laravel application with a single Artisan command. Stop writing boilerplate — start building features.

---

✨ Features
----------

[](#-features)

FeatureFlagModel + Migration + Controller + Requests + Views + Routes + Seeder + Factory*(default)*API Controller + JSON Resource`--api`Service Class`--service`Repository Interface + Implementation`--repository`Livewire CRUD Component`--livewire`Filament Resource`--filament`Typed field definitions`--fields`Force overwrite`--force`Customisable stubs`vendor:publish`---

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

[](#requirements)

- **PHP** 8.2, 8.3, or 8.4
- **Laravel** 10, 11, or 12

---

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

[](#installation)

```
composer require saiman/laravel-saiman-crud --dev
```

Laravel auto-discovers the service provider. No manual registration needed.

---

Quick Start
-----------

[](#quick-start)

```
php artisan make:crud Product
```

Generates 10+ files instantly:

```
✓ Model       → app/Models/Product.php
✓ Migration   → database/migrations/xxxx_create_products_table.php
✓ Controller  → app/Http/Controllers/ProductController.php
✓ Requests    → app/Http/Requests/StoreProductRequest.php
✓ Requests    → app/Http/Requests/UpdateProductRequest.php
✓ Views       → resources/views/products/{index,create,edit,show}.blade.php
✓ Routes      → Appended to routes/web.php
✓ Seeder      → database/seeders/ProductSeeder.php
✓ Factory     → database/factories/ProductFactory.php

```

Then:

```
php artisan migrate
php artisan db:seed --class=ProductSeeder
```

Visit `/products` — your CRUD is live.

---

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

[](#configuration)

Publish the config to customise namespaces, paths, layout, and more:

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

Key options in `config/crud-generator.php`:

```
'namespaces' => [
    'model'      => 'App\\Models',
    'controller' => 'App\\Http\\Controllers',
    // ...
],
'views' => [
    'layout' => 'layouts.app',  // ← your Blade layout
],
'soft_deletes' => false,
'pagination'   => 15,
```

---

Field Definitions
-----------------

[](#field-definitions)

```
php artisan make:crud Product \
  --fields="name:string,price:decimal,stock:integer,active:boolean,description:text:nullable"
```

### Supported Types

[](#supported-types)

TypeMigrationInputValidation`string``string``text``string|max:255``text``text``textarea``string``longtext``longText``textarea``string``integer` / `int``integer``number``integer``bigint``bigInteger``number``integer``smallint``smallInteger``number``integer``tinyint``tinyInteger``number``integer|min:0|max:127``float``float``number``numeric``double``double``number``numeric``decimal``decimal``number``numeric``boolean` / `bool``boolean``checkbox``boolean``date``date``date``date``datetime``dateTime``datetime-local``date_format:Y-m-d H:i:s``timestamp``timestamp``datetime-local``date_format:Y-m-d H:i:s``time``time``time``date_format:H:i:s``email``string``email``email:rfc,dns``url``string``url``url``ip``ipAddress``text``ip``uuid``uuid``text``uuid``json``json``textarea``array``file``string``file``file``image``string``file``image|mimes:...``password``string``password``string|min:8``foreignId``foreignId``number``integer`### Modifiers

[](#modifiers)

Append after type:

```
--fields="email:email:unique,bio:text:nullable"
```

ModifierEffect`:nullable`Adds `->nullable()` to migration and `nullable` to validation`:unique`Adds `->unique()` to migration and `unique:table` to validation---

Available Commands &amp; Flags
------------------------------

[](#available-commands--flags)

```
php artisan make:crud {Model} [options]
```

OptionDescription`--fields="..."`Field definitions (see above)`--api`API controller + JSON Resource. No Blade views generated.`--service`Generate a Service class in `app/Services/``--repository`Generate Repository Interface + Eloquent implementation`--livewire`Generate Livewire CRUD component (requires `livewire/livewire`)`--filament`Generate Filament resource (requires `filament/filament`)`--force`Overwrite existing files### Examples

[](#examples)

```
# Web CRUD with fields
php artisan make:crud Product \
  --fields="name:string,price:decimal,active:boolean"

# Full API stack
php artisan make:crud Product --api --service --repository \
  --fields="name:string,price:decimal,sku:string:unique"

# Livewire CRUD
php artisan make:crud Product --livewire \
  --fields="name:string,price:decimal"

# Filament Resource
php artisan make:crud Product --filament \
  --fields="name:string,price:decimal,featured:boolean"

# Overwrite everything
php artisan make:crud Product --force
```

---

Publishing Stubs
----------------

[](#publishing-stubs)

Customise any generated file by publishing stubs:

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

Stubs are placed in `stubs/crud-generator/`. The package will use your custom stubs automatically.

---

API Reference
-------------

[](#api-reference)

### `make:crud {Model}`

[](#makecrud-model)

Generates a complete CRUD module. `{Model}` must be PascalCase (e.g. `Product`, `BlogPost`).

### Field Format

[](#field-format)

```
name:type[:modifier[:modifier...]]

```

Multiple fields are comma-separated:

```
name:string,price:decimal:nullable,active:boolean

```

---

FAQ
---

[](#faq)

**Q: Does it work with custom namespaces?**A: Yes. Publish the config and set `namespaces.*` to your values.

**Q: Can I use it in a DDD / modular structure?**A: Yes. Override `paths.*` and `namespaces.*` in the config.

**Q: Will it add routes to existing route files?**A: Yes, it appends to `routes/web.php` or `routes/api.php`. It checks for duplicates to prevent double-registration.

**Q: Does `--livewire` require Livewire to be installed?**A: Yes. Install `livewire/livewire ^3.0` before using this flag.

**Q: Does `--filament` require Filament to be installed?**A: Yes. Install `filament/filament ^3.0` before using this flag.

---

Troubleshooting
---------------

[](#troubleshooting)

**"Stub not found" error**Run `php artisan vendor:publish --tag=crud-generator-stubs` and check if the stubs exist in `stubs/crud-generator/`.

**"File already exists" warning**Add `--force` to overwrite: `php artisan make:crud Product --force`.

**Views don't extend my layout**Publish the config and change `views.layout` to your layout name.

**Fields not appearing in views**Pass `--fields` when generating. Fields are only injected at generation time.

---

Upgrade Guide
-------------

[](#upgrade-guide)

### From 1.x to 2.x

[](#from-1x-to-2x)

*(No breaking changes in 1.x series.)*

---

Contributing
------------

[](#contributing)

See [CONTRIBUTING.md](CONTRIBUTING.md).

Security
--------

[](#security)

See [SECURITY.md](SECURITY.md).

Credits
-------

[](#credits)

- [Ankit Suman](https://github.com/dev-ankitsuman) — creator
- [All Contributors](https://github.com/dev-ankitsuman/laravel-saiman-crud/contributors)

License
-------

[](#license)

MIT — see [LICENSE](LICENSE).

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance100

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity48

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/255579148?v=4)[Ankit Suman](/maintainers/dev-ankitsuman)[@dev-ankitsuman](https://github.com/dev-ankitsuman)

---

Top Contributors

[![dev-ankitsuman](https://avatars.githubusercontent.com/u/255579148?v=4)](https://github.com/dev-ankitsuman "dev-ankitsuman (1 commits)")

---

Tags

laravelcrudlaravel12laravel13saiman

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[laravel/ai

The official AI SDK for Laravel.

9782.1M162](/packages/laravel-ai)[illuminate/queue

The Illuminate Queue package.

20432.2M1.5k](/packages/illuminate-queue)[moonshine/moonshine

Laravel administration panel

1.3k239.9k76](/packages/moonshine-moonshine)[erag/laravel-lang-sync-inertia

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

4821.5k](/packages/erag-laravel-lang-sync-inertia)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

252143.0k](/packages/erag-laravel-disposable-email)[aedart/athenaeum

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

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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