laravel-make-extender
Generate and autoload custom helpers, It can generate multilevel helpers in the context of the directory.
Generate Service class for process chunk of codes
Generate Trait for process chunk of codes
Generate Global Scope class for Model
This package helps to generate and autoload custom helpers, It can generate multilevel helpers in the context of the directory.
Installation
You can install the package via composer:
composer require limewell/laravel-make-extender
Generate Helper file
php artisan make:helper UserHelper
This will generate UserHelper.php under App/Helpers directory
php artisan make:helper Module/UserHelper
This will generate Module/UserHelper.php under App/Helpers/Module directory
Generate Service
php artisan make:service UserService
This will generate UserService.php under App/Services directory
Usage
(new UserService())->handle();
Generate Trait
php artisan make:trait UserTrait
This will generate UserTrait.php under App/Traits directory
Generate Scope
php artisan make:scope UserScope
This will generate UserScope.php under App/Scopes directory
see document here for how to use global scopes
Customize Stubs
php artisan vendor:publish --provider="Limewell\LaravelMakeExtender\LaravelMakeExtenderServiceProvider" --tag="stubs"
This will export stubs into /stubs/vendor/laravel-make-extender for customization
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.