Download the PHP package ajayexpert/artisan-trait-maker without Composer
On this page you can find all versions of the php package ajayexpert/artisan-trait-maker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ajayexpert/artisan-trait-maker
More information about ajayexpert/artisan-trait-maker
Files in ajayexpert/artisan-trait-maker
Package artisan-trait-maker
Short Description Artisan Command To Create A trait Stub
License MIT
Homepage https://github.com/ajayexpert/artisan-trait-maker
Informations about the package artisan-trait-maker
TraitMaker
TraitMaker creates an artisan command that lets you quickly create a trait folder and trait stub. If the folder already exists, you can use the command to place new traits in the exsiting folder.
Install
Via Composer
In your app/config/app.php file, add the following to the providers array:
Usage
Once installed, you should see make:trait as one of the artisan commands when you run:
To use this command, supply it with two arguments, the first being the name of the trait, and the second being the name of the folder you want it to reside in. If the folder does not exist, it will be created for you.
For example:
This would create a directory named Traits in your app directory with a php file named TestTrait.php, which would contain the following stub:
Please note, the package currently only supports trait folders that are in the app folder, for example:
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.