public function show($sightId) { $beacon = $this->beaconRepository->getById($sightId); $sights = $this->sightRepository->getAll(); return \View::make('beacons.show')->with('title', 'Edit Beacon')->with('beacon', $beacon)->with('sights', $sights); }
public function index() { $sights = $this->sightRepository->getAll(['city', 'images']); return \View::make('sights.index')->with('title', 'Manage Sights')->with('sights', $sights); }