Getting Started
Installation
- To download this package into your Laravel project, use the command-line to execute the following command
composer require crestapps/laravel-code-generator --dev
- (You may skip this step when using Laravel >= 5.5)** To bootstrap the packages into your project while using command-line only, open the app/Providers/AppServiceProvider.php file in your project. Then, add the following code to the
register()
method.
if ($this->app->runningInConsole()) {
$this->app->register('CrestApps\CodeGenerator\CodeGeneratorServiceProvider');
}
Optional Steps
If you like to override default settings, you may execute the following command to publish a default configuration file to /config/laravel-code-generator.php
php artisan vendor:publish --provider="CrestApps\CodeGenerator\CodeGeneratorServiceProvider" --tag=config
If you like to override the default template, you may execute the following command to publish the default template to /resources/laravel-code-generator/templates/default
php artisan vendor:publish --provider="CrestApps\CodeGenerator\CodeGeneratorServiceProvider" --tag=default-template