2017 © Pedro Peláez
 

library nhgenerator

Simple Generator of CRUD include Controller, Model, View and Route features.

image

nguyenhoang/nhgenerator

Simple Generator of CRUD include Controller, Model, View and Route features.

  • Wednesday, July 11, 2018
  • by nguyen747
  • Repository
  • 0 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

NhGenerator

An simple packages which help the developers create the super boring C-R-U-D features in a second with CLI., (*1)

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system., (*2)

Prerequisites

You need to install the Laravel Collective packages before using this packages., (*3)

composer require "laravelcollective/html":"^5.4.0"

Next, add your new provider to the providers array of config/app.php:, (*4)

  'providers' => [
    // ...
    Collective\Html\HtmlServiceProvider::class,
    // ...
  ],

Finally, add two class aliases to the aliases array of config/app.php:, (*5)

  'aliases' => [
    // ...
      'Form' => Collective\Html\FormFacade::class,
      'Html' => Collective\Html\HtmlFacade::class,
    // ...
  ],
 ```

 The Second things to need to do is clone the Admin SB2 to create the templates. I don't want to include all these css, js because it's not necessary. Please following the step.

 ```
git clone https://github.com/nguyen47/assets.git
 ``` 

Then copy the assets folder from github into the folder public folder of Laravel.

*Please copy exactly the folder*

### Installing

Runining the following CLI code to install this packages

composer require "nguyenhoang/nhgenerator @dev", (*6)


Next, add your new provider to the providers array of config/app.php:

'providers' => [ // ... NguyenHoang\NhGenerator\NhGeneratorServiceProvider::class, // ... ],, (*7)


## Usage After you install this package, you open the ternimal and you will see an new cli called "make:crud". The artisan commands is

php artisan make:crud your-model-name, (*8)

**The model name should be in Upper Case first letter and no Plural Form.**



## Example:

Firstly, you need to create a migration and model.

php artisan make:model User -m, (*9)


Then, you can use the artisan commds below to create the full C-R-U-D features with Mode, Controller and View.

php artisan make:crud User ```, (*10)

Authors

  • Nguyen Hoang - Initial work -
  • kEpEx - Special thanks to kEpEx to help me create this package base on yours laravel-crud-generator

License

This project is licensed under the MIT License - see the LICENSE.md file for details, (*11)

The Versions

11/07 2018

dev-master

9999999-dev

Simple Generator of CRUD include Controller, Model, View and Route features.

  Sources   Download

MIT

by Nguyen Hoang