While some people might have access to PHPStorm and have the luxury of using the Settings > PHP > Laravel > Enable plugin for this project
some people don't.
For Those people I have created this package. Its first goal was to enumerate all the config files in the config folder and create an enum for each one of them config keys and values.
This way you can use the IDE's autocomplete to find the config key you are looking for.
But then I thought, this is my first package lets add some novelty stuff in there. So I added another command to remove phpdoc comments from files and commands to create traits and enums.
Feel free to do Pull Requests to add more novelty commands.
You can install the package via composer:
composer require sandercokart/more-artisan-commands --dev
This package comes with some stubs for the make:command
command. These stubs are published to the stubs
folder in the root of your project. You can publish these stubs with the following command:
php artisan vendor:publish --provider="SanderCokart\MoreArtisanCommands\MoreArtisanCommandsServiceProvider" --tag=stubs
-
Creates a new trait in the
app/Traits
folder. -
Creates a new enum in the
app/Enums
folder.
-
Creates a new enum in the
app/Enums
folder where each case is a key from the config file.
- Removes all phpdoc comments from the given file or directory.