getLimitPerPage()); return CurrencyResource::collection($currencies); } /** * Get the detail of a given currency. * * @param Request $request * * @return CurrencyResource|\Illuminate\Http\JsonResponse */ public function show(Request $request, $currencyId) { try { $currency = Currency::findOrFail($currencyId); } catch (ModelNotFoundException $e) { return $this->respondNotFound(); } return new CurrencyResource($currency); } }