with(['game.platform', 'platform']) ->latest('published_at') ->paginate(30); return view('entries.index', compact('entries')); } public function show(string $section, Entry $entry): View { if( ! in_array($section, self::SECTION_TYPES) ) abort(404); if( $entry->type !== $section ) abort(404); return view('entries.show', compact('entry', 'section')); } }