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

ActiveLibrary[Admin Panels](/categories/admin)

amdadulhaq/crud-generator-laravel
=================================

A package to generate CRUD operations easily.

v1.1.0(1mo ago)06MITPHPPHP ^8.2|^8.3|^8.4|^8.5CI passing

Since Oct 19Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/amdad121/crud-generator-laravel)[ Packagist](https://packagist.org/packages/amdadulhaq/crud-generator-laravel)[ GitHub Sponsors](https://github.com/amdad121)[ RSS](/packages/amdadulhaq-crud-generator-laravel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (14)Versions (6)Used By (0)

CRUD Generator for Laravel
==========================

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

[![Latest Version on Packagist](https://camo.githubusercontent.com/5738307e686aa31edb7146920f20a7da13bbef75af6557080a8ea04685f3f8ab/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616d646164756c6861712f637275642d67656e657261746f722d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/amdadulhaq/crud-generator-laravel)[![GitHub Tests Action Status](https://camo.githubusercontent.com/9ea4b684202997022df01e0881530c11bb45277e3501df8c8a9cc085f9778bf7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f616d646164756c6861712f637275642d67656e657261746f722d6c61726176656c2f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/amdad121/crud-generator-laravel/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/6d07202660e813e56baaeb929b9e33f7e586fd953578c8e721f15590914d2e3e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f616d6461643132312f637275642d67656e657261746f722d6c61726176656c2f6c696e742e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/amdad121/crud-generator-laravel/actions?query=workflow%3A%22Fix+Code+Style%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/a2a735cebeab4601f60d384baceea64114320764c0985b6101b9c95e3dbc04ca/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616d646164756c6861712f637275642d67656e657261746f722d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/amdadulhaq/crud-generator-laravel)

Overview
--------

[](#overview)

The **CRUD Generator** package for Laravel is a command-line tool that helps you quickly create a complete CRUD (Create, Read, Update, Delete) setup for your models, including migration files, controllers, and Blade views. This package streamlines the development process by generating the necessary files with minimal input from the developer.

Features
--------

[](#features)

- Generate models with fillable properties.
- Create migration files with specified fields.
- Generate controllers with all necessary CRUD methods.
- Create Blade views for listing, creating, editing, and showing model instances.
- Automatically add resource routes to `web.php`.

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

[](#requirements)

- PHP &gt;= 8.2
- Laravel &gt;= 10.x, 11.x, 12.x, 13.x

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

[](#installation)

1. **Install the package via Composer**:

    ```
    composer require amdadulhaq/crud-generator-laravel
    ```
2. **Register the Service Provider (if not using auto-discovery)**:

    In config/app.php, add the service provider to the providers array:

    ```
    AmdadulHaq\CRUDGenerator\CrudServiceProvider::class,
    ```
3. **Publish the configuration file (optional)**:

    You can publish the configuration file to customize the package behavior:

    ```
    php artisan vendor:publish --provider="AmdadulHaq\CRUDGenerator\CrudServiceProvider"
    ```

    This will create a crud\_generator.php file in your config directory.

Usage
-----

[](#usage)

To generate CRUD resources, use the following Artisan command:

```
php artisan make:crud {name} {--fields=}
```

### Parameters

[](#parameters)

{name} (optional): The name of the model you want to create. {--fields=} (optional): A comma-separated list of fields for the model, in the format fieldName:fieldType.

### Example

[](#example)

1. **Generate a CRUD setup for a Post model with fields: title (string) and content (text)**:

    ```
    php artisan make:crud Post --fields="title:string,content:text"
    ```
2. **If you do not provide the --fields option, you will be prompted to enter fields interactively**:

    ```
    php artisan make:crud
    ```

    You will then enter model and field names and types one by one until you finish.

Generated Files
---------------

[](#generated-files)

The command will create the following files:

**Model**: `app/Models/Post.php`

**Migration**: `database/migrations/YYYY_MM_DD_HHMMSS_create_posts_table.php`

**Controller**: `app/Http/Controllers/PostController.php`

**Blade Views**:

`resources/views/posts/index.blade.php`

`resources/views/posts/create.blade.php`

`resources/views/posts/edit.blade.php`

`resources/views/posts/show.blade.php`

**Resource Routes**: Automatically added to `routes/web.php`

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

[](#configuration)

You can customize the behavior of the CRUD generator by modifying the `config/crud_generator.php` file. The following options are available:

`generate_model`: Generate a model (default: true).

`generate_migration`: Generate a migration (default: true).

`generate_controller`: Generate a controller (default: true).

`generate_blade`: Generate Blade views (default: true).

`generate_route`: Add resource routes (default: true).

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

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

[](#contributing)

Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance89

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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

Every ~129 days

Total

5

Last Release

54d ago

Major Versions

v0.2.1 → v1.0.02026-01-02

PHP version history (2 changes)v0.1.0PHP ^8.2

v1.0.0PHP ^8.2|^8.3|^8.4|^8.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/7219b32db58e53dddb8a970aec40c9a41ec7d6dbf3570fd89ac14abe7424532e?d=identicon)[amdadulhaq](/maintainers/amdadulhaq)

---

Top Contributors

[![amdad121](https://avatars.githubusercontent.com/u/11732880?v=4)](https://github.com/amdad121 "amdad121 (12 commits)")

---

Tags

crudgeneratorlaravel

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

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

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

###  Alternatives

[studio/laravel-totem

A Laravel package to manage your cron jobs through a beautiful dashboard

1.8k1.1M](/packages/studio-laravel-totem)

PHPackages © 2026

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