Downloads
Stars
Version
composer require joselee214/laravel
Add the service provider to your config/app.php
file within the providers
key:
// ...
'providers' => [
/*
* Package Service Providers...
*/
Joselee214\Ypc\Joselee214ServiceProvider::class,
],
// ...
If you wish to enable generators only for your local environment, you should install it via composer using the --dev option like this:
composer require joselee214/laravel --dev
Then you'll need to register the provider in app/Providers/AppServiceProvider.php
file.
public function register()
{
if ($this->app->environment() == 'local') {
$this->app->register(\Joselee214\Ypc\Joselee214ServiceProvider::class);
}
}
Add the models.php
configuration file to your config
directory and clear the config cache:
php artisan vendor:publish --tag=Joselee214-models
php artisan config:clear
Assuming you have already configured your database, you are now all set to go.
php artisan zz:models
php artisan zz:models --table=users
php artisan zz:models --connection=mysql
php artisan zz:models --schema=shop