2017 © Pedro Peláez
 

library laravel-stubs

Customize laravel make command.

image

atehnix/laravel-stubs

Customize laravel make command.

  • Tuesday, July 17, 2018
  • by atehnix
  • Repository
  • 1 Watchers
  • 35 Stars
  • 1,091 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 7 Forks
  • 0 Open issues
  • 9 Versions
  • 69 % Grown

The README.md

Customize laravel make command

GitHub license Packagist Version Packagist Stats, (*1)

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

Any location of the generated classes and with any content., (*3)

Only Laravel 6 or less is supported.

The laravel-stubs functionality (partially) is now added as part of the Laravel framework (v7)., (*4)

The laravel-stubs package remains available as an implementation of this functionality for previous versions of the framework, but will not be updated for new versions of Laravel., (*5)

Installation

For laravel v5.4 or older see: older installation, (*6)

You can get library through composer, (*7)

composer require atehnix/laravel-stubs

To publish the config file to config/stubs.php run:, (*8)

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

Done!, (*9)

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., (*10)

Modular development.

If you have a large project, you may want to divide it into modules as subdirectories in the "app" directory., (*11)

To make classes inside the module you are developing, you can specify the name of the module in the STUBS_MODULE environment variable., (*12)

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)., (*13)

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

License

MIT, (*15)

The Versions

17/07 2018

dev-master

9999999-dev

Customize laravel make command.

  Sources   Download

MIT

The Requires

 

by Andrey Sosnov

laravel stub generator make

09/02 2018

v4.x-dev

4.9999999.9999999.9999999-dev

Customize laravel make command.

  Sources   Download

MIT

The Requires

 

by Andrey Sosnov

laravel stub generator make

09/02 2018

v4.0.0

4.0.0.0

Customize laravel make command.

  Sources   Download

MIT

The Requires

 

by Andrey Sosnov

laravel stub generator make

04/02 2018

v3.0.0

3.0.0.0

Customize laravel make command.

  Sources   Download

MIT

The Requires

 

by Andrey Sosnov

laravel stub generator make

14/06 2017

v2.0.0

2.0.0.0

Customize laravel make command.

  Sources   Download

MIT

The Requires

 

by Andrey Sosnov

laravel stub generator make

25/12 2016

v1.0.3

1.0.3.0

Customize laravel make command.

  Sources   Download

MIT

The Requires

 

by Andrey Sosnov

laravel stub generator make

21/11 2016

v1.0.2

1.0.2.0

Customize laravel make command.

  Sources   Download

MIT

The Requires

 

by Andrey Sosnov

laravel stub generator make

19/10 2016

v1.0.1

1.0.1.0

Override default stubs

  Sources   Download

MIT

The Requires

 

by Andrey Sosnov

laravel stub generator make

19/10 2016

v1.0.0

1.0.0.0

Override default stubs

  Sources   Download

MIT

The Requires

 

by Andrey Sosnov

laravel stub generator make