public function show($id) { $beatmapset = Beatmapset::with('beatmaps.failtimes', 'user')->findOrFail($id); $set = json_item($beatmapset, new BeatmapsetTransformer(), ['beatmaps', 'beatmaps.failtimes', 'converts', 'converts.failtimes', 'user', 'description', 'ratings']); $countries = json_collection(Country::all(), new CountryTransformer()); $title = trans('layout.menu.beatmaps._') . ' / ' . $beatmapset->artist . ' - ' . $beatmapset->title; return view('beatmapsets.show', compact('set', 'title', 'countries')); }