kennethsolomon / make-service
Can run 'php artisan make:service Foobar' to create new Services.
Installs: 16
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/kennethsolomon/make-service
This package is auto-updated.
Last update: 2025-10-04 07:47:02 UTC
README
Type composer require kennethsolomon/make-service --dev
How to use
Just type php artisan make:service FoobarService
Inside Controller you can use
- Import FoobarService in your controller ->
use App\Services\FoobarService;
$FoobarService = FoobarService::getInstance();
$FoobarService->foo()
# Asumming that there has foo() method inside your service
or
protected $FoobarService; public function __construct(FoobarService $FoobarService) { $this->FoobarService = $FoobarService; }
$this->FoobarService->bar()
# Assuming that there has bar() method inside your service