Downloads
Stars
Version
This package was designed to help developers scaffold parts of code for Laravel-based projects.
Install the saritasa/laravel-tools
package as dev dependency:
$ composer require saritasa/laravel-tools --dev
If you use Laravel 5.4 or less,
or 5.5+ with package discovery disabled,
add the LaravelToolsServiceProvider in AppServiceProvider.php
:
public function register()
{
if ($this->app->environment() === 'local') {
// If we are in local environment, enable some developer's tools
...
$this->app->register(LaravelToolsServiceProvider::class);
...
}
}
Publish config with
$ artisan vendor:publish --tag=laravel_tools
Allows to generate FormRequest class with rules based on model's attributes.
Allows to generate DTO class with properties based on model's attributes.
Allows to build API routes declaration based on swagger specification.
Allows to scaffold API Controllers with actions based on swagger specification.
Please, read our WIKI for complete documentation.
What need to improve:
See CONTRIBUTING and Code of Conduct, if you want to make contribution (pull request) or just build and test project on your own.