Need to create service file using custom stubs.
trushal-7span opened this issue · 0 comments
trushal-7span commented
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;
}