PHPackages                             zamshed/crud-package-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. [Framework](/categories/framework)
4. /
5. zamshed/crud-package-laravel

ActiveLibrary[Framework](/categories/framework)

zamshed/crud-package-laravel
============================

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

1.0.1(2y ago)012MITPHPPHP ^7.0 || ^8.0

Since Dec 26Pushed 2y ago1 watchersCompare

[ Source](https://github.com/zamshedarifin/crud-package-laravel-v10)[ Packagist](https://packagist.org/packages/zamshed/crud-package-laravel)[ RSS](/packages/zamshed-crud-package-laravel/feed)WikiDiscussions main Synced yesterday

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

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

[](#installation)

```
composer require zamshed/crud-package-laravel

```

Features
--------

[](#features)

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

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

[](#configuration)

Publish the configuration file

This step is required

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

```

Usage
-----

[](#usage)

After publishing the configuration file just run the below command

```
php artisan crud:generate 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 crud:generate Post

```

#### PostController.php

[](#postcontrollerphp)

```
