Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kyslik/artisan-stubs
Override default artisan:make stubs.
https://github.com/kyslik/artisan-stubs
artisan composer laravel-5-package php stub
Last synced: 5 days ago
JSON representation
Override default artisan:make stubs.
- Host: GitHub
- URL: https://github.com/kyslik/artisan-stubs
- Owner: Kyslik
- License: mit
- Created: 2016-09-04T16:32:10.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-03T11:26:46.000Z (over 7 years ago)
- Last Synced: 2024-04-20T19:24:56.236Z (7 months ago)
- Topics: artisan, composer, laravel-5-package, php, stub
- Language: PHP
- Homepage:
- Size: 27.3 KB
- Stars: 9
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Overrider of Artisan make:whatever stubs
[![Latest Version](https://img.shields.io/github/release/Kyslik/artisan-stubs.svg?style=flat-square)](https://github.com/Kyslik/artisan-stubs/releases)
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)
[![Total Downloads](https://img.shields.io/packagist/dt/Kyslik/artisan-stubs.svg?style=flat-square)](https://packagist.org/packages/Kyslik/artisan-stubs)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.
### Idea from
[Q&A](http://stackoverflow.com/q/21810251/1564365)