kyslik / artisan-stubs
Override default artisan make stubs
2.0.0
2017-03-03 11:23 UTC
Requires
- php: >=5.6.4
- laravel/framework: 5.4.*
This package is auto-updated.
Last update: 2024-12-06 10:17:23 UTC
README
Override default artisan make stubs
Setup
Composer
Pull this package in through Composer (development/latest version dev-master
).
composer require kyslik/artisan-stubs
or
Add to composer.json
following (for Laravel 5.4):
{
"require": {
"kyslik/artisan-stubs": "2.*"
}
}
$ 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,
],
Publish stubs
$ php artisan vendor:publish --provider="Kyslik\ArtisanStubs\ArtisanStubsServiceProvider" --tag="stubs"
Tip
add
.gitignore
to your/resources
folder$ echo "/stubs" > ./resources/.gitignore
Usage
Simply edit resources/stubs/*.stub
you like and enjoy artisan commands as usual.