auth(__FUNCTION__); return response()->json(CentroCustoService::index($request), Response::HTTP_OK); } public function show($id) { $this->auth(__FUNCTION__); return response()->json(CentroCustoService::show($id), Response::HTTP_OK); } }