laravel-shift / blueprint

A code generation tool for Laravel developers.
MIT License
2.91k stars 276 forks source link

Need to create service file using custom stubs. #687

Open trushal-7span opened 6 months ago

trushal-7span commented 6 months ago

We need to create service file via yml file using custom stubs.

Below is example:

Controller:

public function index(Request $request) { $companies = $this->companyService->collection($request->all()); return new CompanyCollection($companies); }

Service:

public function collection(array $inputs) { $companies = $this->companyObj->all(); return $companies; }