terranc / lf-generator by terranc

Laravel 5 repository / model generator.
55
0
1
Package Data
Maintainer Username: terranc
Maintainer Contact: terran.chao@lookfeel.co (terranc)
Package Create Date: 2017-06-29
Package Last Update: 2019-08-02
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2024-12-13 15:01:28
Package Statistics
Total Downloads: 55
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 1
Total Forks: 0
Total Open Issues: 0

LF-generator

Installation

Step 1

composer install terranc/lf-generator --dev

Step 2

Add the following code to your app/Providers/AppServiceProvider.php file, within the root() method:

if ($this->app->environment() == 'local') {
  $this->app->register(\Lookfeel\Boilerplate\GeneratorCommandServiceProvider::class);
}

Usage

php artisan app:xxx
 app
  app:attribute        Create a new attribute traits for model
  app:model            Create a new Eloquent model class with attribute, relationship and scope traits
  app:name             Set the application namespace
  app:relationship     Create a new relationship traits for model
  app:repository       Create a new repository class
  app:scope            Create a new scope traits for model

Links

hariadi/laravel-boilerplate-generator