Open trushal-7span opened 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; }
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; }