execute(); } /** * Store a newly created resource in storage. * * @param \Illuminate\Http\Request $request * * @param UpdateCompany $logic * @return CompanyResource */ public function store(Request $request, UpdateCompany $logic): CompanyResource { return $logic->execute($request); } /** * Display the specified resource. * * @param int $id * * @return CompanyResource */ public function show($id): CompanyResource { return (new CompanyProfile())->execute($id); } /** * Remove the specified resource from storage. * * @param int $id * * @return CompanyResource */ public function destroy($id): CompanyResource { return (new DeleteCompany())->execute($id); } }