PHPackages                             mehadi/laravel-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. mehadi/laravel-crud-generator

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

mehadi/laravel-crud-generator
=============================

A laravel package to generate CRUD by giving Model and database table column

v0.0.4(2y ago)31.5k↑376.9%MITPHP

Since Aug 25Pushed 2y ago1 watchersCompare

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

READMEChangelog (4)DependenciesVersions (5)Used By (0)

Laravel CRUD Generator 🖥️🔥
--------------------------

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

Introduction
------------

[](#introduction)

Welcome to the Laravel CRUD Generator 🖥️🔥! This package provides a convenient way to quickly generate CRUD (Create, Read, Update, Delete) functionality for your Laravel projects.

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

[](#installation)

To integrate the **Laravel CRUD Generator** into your Laravel project, follow these steps:

1. Open your terminal and navigate to your project's root directory.
2. Run the following command to install the package via Composer:

```
composer require mehadi/laravel-crud-generator
```

Features
--------

[](#features)

The **Laravel CRUD Generator** offers the following features:

- Automatically creates the Model, Migration, Controller, and View files for your CRUD operations.
- Adds a menu item to the navigation for easy access to the generated CRUD pages.
- Sets up the necessary routes in the `web.php` file.
- On deletion, it removes all the files generated by the CRUD operations.
- Input fields **`[text, textarea, email, number, file]`**
- File uploading
- Deleting old file when updating any model post
- Simple Form validation

Usage
-----

[](#usage)

Once you've installed the package and set up the prerequisites, you can use the **Laravel CRUD Generator** to quickly create CRUD operations for your models. Here's how:

1. Open your terminal in the root directory of your Laravel project.
2. Use the following command to generate CRUD files for a specific model (e.g., `Post`) along with its columns:

```
php artisan crud:make Post --data='title:string:input,description:text:textarea,image:text:file'
```

- The first parameter (`Post` in this example) is the name of the model.
- The second parameter (`--data`) specifies the table columns for the model, where each column is defined as `column_name:data_type`.
- Certainly, let's break down secound parameter (`--data='title:string:input,description:text:textarea,image:text:file'`):
- `image`: This is the name of the column in the database table. It represents a field in the table where you'll store information related to images.
- `text`: This is the data type assigned to the column in the database. In this case, it's set to "text," which indicates that the column can store a longer text-based content.
- `file`: This refers to the input type that you would use in the user interface (UI) for uploading files. In the context of HTML forms, this would be an `` element with `type="file"`. This allows users to select and upload files, such as images, from their devices.

3. After creating a new Model, be sure to execute the following command:

```
php artisan migrate
```

Running this command is important to ensure that any database changes related to the new Model are properly applied. This helps keep your database schema synchronized with your application's data structure. 4. To delete all the generated CRUD files and clean up, use the following command:

```
php artisan crud:delete Post
```

5. To make these uploaded files accessible from the web, you need to create a symbolic link from the public/storage directory to the storage/app/public directory. This can be done using the following Artisan command:

```
php artisan storage:link
```

After running this command, Laravel will create a symbolic link that allows files in the **storage/app/public** directory to be accessed through the URL .

Prerequisites
-------------

[](#prerequisites)

Before using the **Laravel CRUD Generator**, make sure you have the following prerequisites set up in your project:

1. Install Laravel Breeze package:

```
composer require laravel/breeze
```

2. Run the Breeze installation command and choose the Blade template option:

```
php artisan breeze:install
```

3. Run the migration command to set up the database tables:

```
php artisan migrate
```

4. Install npm packages:

```
npm install
```

5. Compile the assets with the following command:

```
npm run dev
```

Screenshots
-----------

[](#screenshots)

###### Add new Post form

[](#add-new-post-form)

[![View Post Modal](/screenshots/post_form.png)](/screenshots/post_form.png)

###### List Post

[](#list-post)

[![Add Post Modal](/screenshots/post_list.png)](/screenshots/post_list.png)

Notes
-----

[](#notes)

- This package helps automate the process of generating CRUD operations for your Laravel models, saving you time and effort.
- Ensure that you have all the prerequisites installed and set up correctly before using the CRUD generator.

For more information, visit the [GitHub repository](https://github.com/mehadi/laravel-crud-generator) or the [Packagist page](https://packagist.org/packages/mehadi/laravel-crud-generator) of the package.

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 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 ~1 days

Total

4

Last Release

1042d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/19305052?v=4)[Mehadi Hasan](/maintainers/mehadi)[@mehadi](https://github.com/mehadi)

---

Top Contributors

[![mehadi](https://avatars.githubusercontent.com/u/19305052?v=4)](https://github.com/mehadi "mehadi (9 commits)")

---

Tags

crud generatorlaravel crud generatorlaravel-auto-crud

### Embed Badge

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

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

###  Alternatives

[appzcoder/crud-generator

Laravel CRUD Generator

1.4k589.2k7](/packages/appzcoder-crud-generator)[ibex/crud-generator

Laravel CRUD Generator

704252.1k](/packages/ibex-crud-generator)[crestapps/laravel-code-generator

An intelligent code generator for Laravel framework that will save you time! This awesome tool will help you generate resources like views, controllers, routes, migrations, languages and/or form-requests! It is extremely flexible and customizable to cover many on the use cases. It is shipped with cross-browsers compatible template, along with a client-side validation to modernize your application.

76196.0k1](/packages/crestapps-laravel-code-generator)[mrdebug/crudgen

Create a Laravel Crud in a few seconds

31629.5k](/packages/mrdebug-crudgen)[mehradsadeghi/laravel-crud-generator

Generate CRUD for your laravel application like a breeze

17012.9k](/packages/mehradsadeghi-laravel-crud-generator)[takielias/tablar-crud-generator

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

326.2k](/packages/takielias-tablar-crud-generator)

PHPackages © 2026

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