PHPackages                             darshan-belani/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. [Admin Panels](/categories/admin)
4. /
5. darshan-belani/laravel-crud-generator

ActiveLibrary[Admin Panels](/categories/admin)

darshan-belani/laravel-crud-generator
=====================================

Laravel CRUD Generator

v1.0.0(10mo ago)16MITPHPPHP ^8.2

Since Jul 5Pushed 10mo agoCompare

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

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

[![model_1](images/laravel-crud-generator.png)](images/laravel-crud-generator.png)

This Laravel CRUD Generator package streamlines development by generating Migration, Controllers, Models (with Eloquent relationships), and Views using a single command. It supports multiple frontend stacks, including **Bootstrap**, **Tailwind CSS**, and **Livewire** (Livewire views use **Tailwind CSS**). You can also choose an **API-only** stack for backend-focused applications.

- Will create **Model** with Eloquent relations
- Will create **Migration** with table name anf fillable attribute
- Will create **Controller** with all resources
- Will create **API Controllers** with all requests
- Will create **Component** with all resources for Livewire
- Will create **views** in Bootstrap/Tailwind

This is the best crud generator for a blank Laravel project installation too. This will auto install the starter kit [laravel/breeze](https://github.com/laravel/breeze) or [laravel/ui](https://github.com/laravel/ui) (for bootstrap 5) for blank Laravel installation.

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

[](#requirements)

```
Laravel >= 10.x
PHP >= 8.1

```

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

[](#installation)

1 - Install

```
composer require darshan-belani/laravel-crud-generator

```

2- Publish the default package's config (optional)

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

```

Usage
-----

[](#usage)

When creating a blog module, please ensure that the table name is set as either blogs or posts.

```
php artisan make:module {table_name}

php artisan make:module posts

```

#### Enter table name

[](#enter-table-name)

[![createTable.png](images/create_table.png)](images/create_table.png)

#### Tech Stack

[](#tech-stack)

[![img.png](images/stack.png)](images/stack.png)

#### Enter the number for how many fields required (number only)

[](#enter-the-number-for-how-many-fields-required-number-only)

[![field_number.png](images/field_number.png)](images/field_number.png)

#### Enter fields name

[](#enter-fields-name)

[![enter_field_name.png](images/enter_fields_name.png)](images/enter_fields_name.png)

#### After that those below files is created

[](#after-that-those-below-files-is-created)

[![create_files.png](images/create_files.png)](images/create_files.png)

### File examples

[](#file-examples)

#### Created a route in `web.php`

[](#created-a-route-in-webphp)

```
Route::resource('blogs', BlogController::class);

```

#### For `Livewire` created routes below

[](#for-livewire-created-routes-below)

```
Route::get('/posts', \App\Livewire\Posts\Index::class)->name('posts.index');
Route::get('/posts/create', \App\Livewire\Posts\Create::class)->name('posts.create');
Route::get('/posts/show/{bank}', \App\Livewire\Posts\Show::class)->name('posts.show');
Route::get('/posts/update/{bank}', \App\Livewire\Posts\Edit::class)->name('posts.edit');

```

#### For `api` created routes below

[](#for-api-created-routes-below)

```
Route::apiResource('blogs', BlogController::class);

```

#### Route name in plural slug case.

[](#route-name-in-plural-slug-case)

```
php artisan make:module {table_name} {bootstrap,tailwind,livewire,api}

php artisan make:module blogs bootstrap  //This will create views in Bootstrap 5 using Blade
php artisan make:module blogs tailwind   //This will create views in Tailwind css using Blade
php artisan make:module blogs livewire   //This will create views in Tailwind css with Livewire components
php artisan make:module blogs api        //This will create API only controllers

```

#### Custom Route

[](#custom-route)

```
php artisan make:module {table_name} --route={route_name}

```

File Examples
-------------

[](#file-examples-1)

#### Model structure

[](#model-structure)

[![model](images/model_1.png)](images/model_1.png)

#### Controller structure

[](#controller-structure)

[![controller](images/controller.png)](images/controller.png)

#### Livewire component

[](#livewire-component)

[![live_wire](images/live_wire.png)](images/live_wire.png)

#### API only controller

[](#api-only-controller)

[![api_controller](images/api_controller.png)](images/api_controller.png)

#### Tailwind CSS

[](#tailwind-css)

[![Listing](images/tailwind_css.png)](images/tailwind_css.png)

#### Tailwind Form

[](#tailwind-form)

[![tailwind_from](images/tailwind_from.png)](images/tailwind_from.png)

#### Bootstrap

[](#bootstrap)

[![Listing](images/bootstrap.png)](images/bootstrap.png)

#### Bootstrap Form

[](#bootstrap-form)

[![bootstrap_from](images/bootstrap_from.png)](images/bootstrap_from.png)

Personalize
-----------

[](#personalize)

You have the possibility of 100% customizing the generated views, this is achieved in the following way:

- Run this command `php artisan vendor:publish --tag=crud` this will create the `crud.php` file in your config/ folder.
- Update the variable `stub_path`, to your own stub folder like `'stub_path' => resource_path('stubs/'),`
- Copy the stubs files from package

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

```

- Update your changes in your stub files. (you can delete extra files/folders if you are not using them).
- Run the command for crud generation and you'll get the updated views.

Author
------

[](#author)

Darshan Belani // [Email Me](mailto:darshan.belani9@gmail.com)

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance54

Moderate activity, may be stable

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity49

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

312d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8c67c4397c29beeb170b07355534832c4bbd176f749e3e06db35a87b44d7eade?d=identicon)[darshan-belani](/maintainers/darshan-belani)

---

Top Contributors

[![darshan-belani](https://avatars.githubusercontent.com/u/42431613?v=4)](https://github.com/darshan-belani "darshan-belani (1 commits)")

---

Tags

laravellaravel-packagelivewirecrudcrud generatorlaravel crud generatortailwind cssbootstrap css

### Embed Badge

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

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

###  Alternatives

[ibex/crud-generator

Laravel CRUD Generator

706235.0k](/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.

76591.7k1](/packages/crestapps-laravel-code-generator)[takielias/tablar-crud-generator

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

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

PHPackages © 2026

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