PHPackages                             aminul/crudgenerator - 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. aminul/crudgenerator

ActiveLibrary

aminul/crudgenerator
====================

A simple Laravel library that allows you to create crud operations with a single command

03PHP

Since Aug 30Pushed 2y ago1 watchersCompare

[ Source](https://github.com/aminulbinnoor/crud-package)[ Packagist](https://packagist.org/packages/aminul/crudgenerator)[ RSS](/packages/aminul-crudgenerator/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel CRUD Generator Package
==============================

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

A simple Laravel 8.\* library that allows you to create crud operations with a single command

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

[](#installation)

```
composer require aminul/crudgenerator

```

Features
--------

[](#features)

- Controller (with all the code already written)
- Model
- Migration
- Requests
- Routes

Enable the package (Optional)
-----------------------------

[](#enable-the-package-optional)

This package implements Laravel auto-discovery feature. After you install it the package provider and facade are added automatically

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

[](#configuration)

Publish the configuration file

This step is required

```
php artisan vendor:publish --provider="Aminul\CrudGenerator\CrudGeneratorServiceProvider"

```

Usage
-----

[](#usage)

After publishing the configuration file just run the below command

```
php artisan make:crud ModelName

```

Just it, Now all of your `Model Controller, Migration, routes` and `Request` will be created automatically with all the code required for basic crud operations

Example
-------

[](#example)

```
php artisan make:crud Product

```

#### ProductController.php

[](#productcontrollerphp)

```
