dungnt / laravel-make-repository-service
A simple package to create a make:repository, make:service command for Laravel 8+
dev-main
2022-04-09 18:26 UTC
Requires
- illuminate/config: ~5.0|~6.0|~7.0|~8.0
- illuminate/console: ~5.0|~6.0|~7.0|~8.0
- illuminate/database: ~5.0|~6.0|~7.0|~8.0
- illuminate/filesystem: ~5.0|~6.0|~7.0|~8.0
- illuminate/http: ~5.0|~6.0|~7.0|~8.0
- illuminate/pagination: ~5.0|~6.0|~7.0|~8.0
- illuminate/support: ~5.0|~6.0|~7.0|~8.0
This package is auto-updated.
Last update: 2024-05-09 23:17:02 UTC
README
A package for addding php artisan make:repository
, php artisan make:service
command to Laravel 6+
Installation
Require the package with composer using the following command:
composer require dungnt/laravel-make-repository-service --dev
Or add the following to your composer.json's require-dev section and composer update
"require-dev": { "dungnt/laravel-make-repository-service": "^2.*" }
In your config/app.php add Dungnt\LaravelMakeRepositoryService\RepositoryServiceProvider::class to the end of the providers array:
'providers' => [ ... Dungnt\LaravelMakeRepositoryService\RepositoryServiceProvider::class, ],
Publish Configuration
php artisan vendor:publish --provider "Dungnt\LaravelMakeRepositoryService\RepositoryServiceProvider"
Usage
php artisan make:repository your-repository-name
php artisan make:service your-service-name
Example:
php artisan make:repository User
php artisan make:service User
or
php artisan make:repository Backend\User
php artisan make:service Backend\User