A wrapper around the artisan make command to move created classes to a specified path and update the namespace accordingly.
mattostromhall/laravel-make-in is a Laravel package for a wrapper around the artisan make command to move created classes to a specified path and update the namespace accordingly..
It currently has 0 GitHub stars and 186 downloads on Packagist (latest version v0.1.0).
Install it with composer require mattostromhall/laravel-make-in.
Discover more Laravel packages by mattostromhall
or browse all Laravel packages to compare alternatives.
Last updated
A wrapper around the artisan make command to move created classes to a specified path and update the namespace accordingly. This is not needed if you follow the default folder structure of a laravel project as the make command itself provides this in the name argument of the command.
However, if for instance you are following a Domain Driven approach, this saves you manually moving the files and updating namespaces after creation.
You can install the package via composer:
composer require --dev mattostromhall/laravel-make-in
The commands currently available are
php artisan make:command-in
php artisan make:controller-in
php artisan make:job-in
php artisan make:mail-in
php artisan make:model-in
php artisan make:request-in
The base path and namespace for a command can be set through your .env file by adding the following, with values for the base path and namespace you'd like to use for the command:
PATH_BASE_{CLASS_NAME}=path/to/base/location
NAMESPACE_BASE_{CLASS_NAME}=Base\Namespace\Here
Alternatively you can publish the config file and set the values you require there with:
php artisan vendor:publish --tag="laravel-make-in-config"
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.