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