public function index($expeditionId) { $newLocation = new MapLocation(); $expedition = Expedition::with('locations')->findOrFail($expeditionId); return view('admin.expeditions.locations.index')->with(compact('newLocation', 'expedition')); }
public function expedition($slug) { $expedition = Expedition::with('expeditionists')->where('slug', $slug)->firstOrFail(); return view('front.pages.expedition')->with(compact('expedition')); }