hizbul / generators
Generate Model, Controller, View and migration in a single artisan command
This package's canonical repository appears to be gone and the package has been frozen as a result.
Installs: 190
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 0
Type:package
Requires
- php: >=5.6.0
Requires (Dev)
- phpspec/phpspec: ~2.1
This package is not auto-updated.
Last update: 2024-05-29 23:58:45 UTC
README
L5 includes a bunch of generators out of the box, so this package only needs to add couple of command in a single command, like:
generate:all --controller=SomeController --model=some --view=some --migration=create_some_table
With one or two more to come.
Usage
Step 1: Install Through Composer
composer require hizbul/generators
Step 2: Add the Service Provider
You'll only want to use these generators for local development, so you don't want to update the production providers
array in config/app.php
. Instead, add the provider in app/Providers/AppServiceProvider.php
, like so:
public function register() { if ($this->app->environment() == 'local') { $this->app->register('Hizbul\Generators\GenerateAllServiceProvider'); } }
Happy using :)