load([ 'operator', 'location', 'areas.rides' => function ($query) { $query->orderBy('position')->orderBy('name'); }, 'areas' => function ($query) { $query->orderBy('position')->orderBy('name'); }, 'photos' => function ($query) { $query->orderBy('is_featured', 'desc')->orderBy('created_at', 'desc'); } ]); return view('parks.show', compact('park')); } /** * Show the form for editing the specified park. */ public function edit(Park $park): View { return view('parks.edit', compact('park')); } }