add dtos, requests, resources,controller, repository and service (interface + class) in your project
toshkq93/laravel-components is a Laravel package for add dtos, requests, resources,controller, repository and service (interface + class) in your project.
It currently has 1 GitHub stars and 19 downloads on Packagist (latest version 2.0.0).
Install it with composer require toshkq93/laravel-components.
Discover more Laravel packages by toshkq93
or browse all Laravel packages to compare alternatives.
Last updated
Install the package via composer
composer require --dev toshkq93/laravel-components
Publish the config file with:
php artisan vendor:publish --provider=Toshkq93\Components\Providers\ComponentProvider
Go to the root folder of your project and enter the command:
php artisan make:components {namespace_model} --all
Example:
php artisan make:components App/Models/User --all
and your project will create:
you can also use other flags in various combination:
After generating services and repositories, bind is automatically added to the container in the App\Provides\AppServiceProvider.
After the controller is generated, a resource route is automatically added depending on the file name (api - apiResource, web - resource). You can also change the path to the 'route_path' route file in the configuration file.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.