skeleton / generator
Skeleton Generator Package
1.1.1
2019-04-01 10:20 UTC
README
Used to create a simple structure for your component.
Usage: php artisan make:all {name : The common class name to be used in each part of the structure}
Example: php artisan make:all House
This will create the following laravel classes:
- config/app.php (adds Service Provider)
- app/Http/Controllers/HouseController.php
- app/Models/House.php
- app/Repositories/House/HouseRepository.php
- app/Repositories/House/HouseRepositoryInterface.php
- app/Services/HouseService.php
- routes/api.php (create if not exists, otherwise appends)
- routes/web.php (create if not exists, otherwise appends)
Installation
Make sure you add the following to app/config.php
/*
* Package Service Providers...
*/
Skeleton\Generator\Providers\GeneratorServiceProvider::class,