Laravel Oh Generators
This package extends the core file generators that are included with Laravel 5
Install by composer
$ composer require yish/generators
- 5.4 before using branch
- 5.5 ~ 5.7 using branch
- 5.8 or later using branch
Registing Service Provider
If you are using laravel 5.5, you can use auto discover also, you don't need put in service provider to
<?php //app.php 'providers' => [ \Yish\Generators\GeneratorsServiceProvider::class, ],
It can be generating class service.
$ php artisan make:service UserService
It can be generating class repository.
$ php artisan make:repository UserRepository
It can be generating class transformer.
$ php artisan make:transformer UserTransformer
It can be generating class formatter.
$ php artisan make:formatter UserFormatter
It can be generating class presenter.
$ php artisan make:presenter UserPresenter
It can be generating class foundation.
$ php artisan make:foundation Taggable
If you need more examples and documentation, see documentation.