zintel / laravel-service
This package helps you create a service and bind a model to it
1.0.2
2024-01-22 10:42 UTC
Requires
- php: ^7.1|^8.1
README
Install
composer require zintel/laravel-service
Change config file
<?php // config/app.php 'providers' => ServiceProvider::defaultProviders()->merge([ //... \Zintel\LaravelService\Providers\MakeServiceCommandProvider::class, ])->toArray(),
Usage
$ php artisan make:service {name : Create a service class} {--m= : Optional of import a model}
Example
$ php artisan make:service User/UserService --m=User