skeleton / generator
Skeleton Generator Package
Installs: 1 731
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 1
Open Issues: 0
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,