Download the PHP package mrkatz/laravel-stubs without Composer
On this page you can find all versions of the php package mrkatz/laravel-stubs. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mrkatz/laravel-stubs
More information about mrkatz/laravel-stubs
Files in mrkatz/laravel-stubs
Package laravel-stubs
Short Description Laravel Stubs Editor & Generator
License MIT
Homepage https://github.com/mrkatz/laravel-stubs
Informations about the package laravel-stubs
Customize laravel make command
The package allows customization of the 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
You can get library through composer
To publish the config file to config/stubs.php
run:
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
.
Modular development.
If you have a large project, you may want to divide it into modules as subdirectories in the "app" directory.
To make classes inside the module you are developing, you can specify the name of the module in the STUBS_MODULE
environment variable.
Publish stub files for edit
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