laravel-shift / blueprint

A code generation tool for Laravel developers.
MIT License
2.82k stars 270 forks source link

Need to create service file using custom stubs. #687

Open trushal-7span opened 3 months ago

trushal-7span commented 3 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; }