PHP code example of ferdinalaxewall / service-repository-generator
1. Go to this page and download the library: Download ferdinalaxewall/service-repository-generator library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ferdinalaxewall / service-repository-generator example snippets
'providers' => [
/*
* Package Service Providers...
*/
\Ferdinalaxewall\ServiceRepositoryGenerator\ServiceRepositoryGeneratorProvider::class,
],
├── app
| ├── Services
| | ├── Entity
| | | ├── EntityService.php
| | | ├── EntityServiceImp.php
| ├── Repositories
| | ├── Entity
| | | ├── EntityRepository.php
| | | ├── EntityRepositoryImp.php
| | └── BaseRepository.php
bash
composer dump-autoload && php artisan optimize:clear
bash
php artisan make:service-repository {model}
bash
php artisan make:repository {repository-name} {--model=}