terranc / lf-generator
Laravel 5 repository / model generator.
1.0.1
2019-08-02 03:49 UTC
Requires
- illuminate/console: ^5.4
- illuminate/filesystem: ^5.4
- illuminate/support: ^5.4
Requires (Dev)
- mockery/mockery: ^0.9.9
- phpunit/phpunit: ^6.0
This package is not auto-updated.
Last update: 2024-11-12 04:49:54 UTC
README
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
app:service Create a new service class