PHPackages                             realsocius/api-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. realsocius/api-crud-generator

ActiveLibrary

realsocius/api-crud-generator
=============================

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

1.2.1(5y ago)027MITPHPPHP ^7.0 || ^7.1 || ^7.2 || ^7.3 || ^7.4 || ^8.0

Since Apr 11Pushed 5y ago1 watchersCompare

[ Source](https://github.com/RealSocius/laravel-crud)[ Packagist](https://packagist.org/packages/realsocius/api-crud-generator)[ RSS](/packages/realsocius-api-crud-generator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (5)Used By (0)

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

[](#laravel-crud-generator)

A simple Laravel 8 library that allows you to create crud operations with a single command All of the code was copied from salmanzafar949/Laravel-Crud-Generator and updated to Laravel 8 standards.

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

[](#installation)

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

```

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 for laravel &gt;= 5.5.

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

[](#configuration)

Publish the configuration file

This step is required

```
php artisan vendor:publish --provider="Realsocius\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 Car

```

#### CarController.php

[](#carcontrollerphp)

```
