App\Http\Controllers\BeatmapsetsController::show PHP Method

show() public method

public show ( $id )
    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', 'availability']);
        $countries = json_collection(Country::all(), new CountryTransformer());
        $title = trans('layout.menu.beatmaps._') . ' / ' . $beatmapset->artist . ' - ' . $beatmapset->title;
        return view('beatmapsets.show', compact('set', 'title', 'countries'));
    }