Skip to content

danielcamargo/laravel-stubs-1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Customize laravel make command

GitHub license Packagist Version

The package gives you the opportunity to customize Artisan commands like artisan make:model, artisan make:controller and other, just as you need.

Any location of the generated classes and with any content.

Installation for Laravel 5.5 / 5.6

For older laravel versions see: older installation

You can get library through composer

composer require atehnix/laravel-stubs

To publish the config file to config/stubs.php run:

php artisan vendor:publish --provider="ATehnix\LaravelStubs\Providers\ConsoleSupportServiceProvider"

Done!

Usage

Configure paths for generated classes

To change the paths of saving the generated classes, you need to configure their namespaces in a configuration file config/stubs.php.

Publish stub files for edit

php artisan stubs:publish

The files will be placed in the directory resources/stubs (or other directory if you change it in the configuration file).

Now you can edit any of the stubs and enjoy your customized commands like artisan make:model, artisan make:controller and others.

License

MIT

About

Editable templates for `artisan make:` commands

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%