Override default artisan make stubs
Pull this package in through Composer (development/latest version dev-master
).
composer require kyslik/artisan-stubs
or
Add to Composer.json
following
{
"require": {
"kyslik/artisan-stubs": "~1.0.0"
}
}
$ composer update
Add the package to your application service providers in config/app.php
'providers' => [
App\Providers\RouteServiceProvider::class,
/*
* Third Party Service Providers...
*/
Kyslik\ArtisanStubs\ArtisanStubsServiceProvider::class,
],
$ php artisan vendor:publish --provider="Kyslik\ArtisanStubs\ArtisanStubsServiceProvider" --tag="stubs"
Tip
add
.gitignore
to your/resources
folder$ echo "/stubs" > ./resources/.gitignore
Simply edit resources/stubs/*.stub
you like.