butoibogdan / crud-generator by butoibogdan
forked from sohelamin/crud-generator

Laravel5 CRUD Generator
16
0
1
Package Data
Maintainer Username: butoibogdan
Maintainer Contact: sohelamincse@gmail.com (Sohel Amin)
Package Create Date: 2015-06-09
Package Last Update: 2015-06-26
Home Page: https://packagist.org/packages/appzcoder/crud-generator
Language: PHP
License: MIT
Last Refreshed: 2024-12-18 03:04:04
Package Statistics
Total Downloads: 16
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 1
Total Forks: 0
Total Open Issues: 0

Laravel5 Crud Generator

Laravel CRUD Generator

Installation

  1. Run

    composer require "appzcoder/crud-generator":"dev-master"
    
  2. Add service provider into /config/app.php file.

    'providers' => [
        ...
    
        'Appzcoder\CrudGenerator\CrudGeneratorServiceProvider',
    ],
    

    Add bellow lines for "illuminate/html" package if you've not done yet.

    'providers' => [
        ...
    
        'Illuminate\Html\HtmlServiceProvider',
    ],
    
    'aliases' => [
    
        ...
    
        'Form'=> 'Illuminate\Html\FormFacade', 
        'HTML'=> 'Illuminate\Html\HtmlFacade',
    ],
    
  3. Run composer update

Note: You should have configured database as well for this operation.

Commands

Crud command:

php artisan crud:generate crud-name --fields="name:string, email:string, phone:integer, message:text"


Others command (optional):

For controller generator:

php artisan crud:controller NameController --crud-name="Name"

For model generator:

php artisan crud:model Name --fillable="['name', 'email', 'message']"

For migration generator:

php artisan crud:migration migration-name --schema="name:string, email:string, phone:integer, message:text"

For view generator:

php artisan crud:view crud-name --fields="name:string, email:string, phone:integer, message:text"

##Author

Sohel Amin