public function show($id)
    {
        $event = $this->event->find($id);

        $apiObject = $this->event->findApiObject($event->api_id);

        if ($apiObject) {
            return view('events.show', compact('event', 'apiObject'));
        }

        abort(404);
    }
public function show($id)
    {
        $event = $this->event->find($id);

        $apiObject = $this->event->findApiObject($event->api_id);

        if ($apiObject) {
            return view('events.show', compact('event', 'apiObject'));
        }

        abort(404);
    }
public function show ( $ id ) { $ event = $ this -> event -> find ( $ id ) ; $ apiObject = $ this -> event -> findApiObject ( $ event -> api_id ) ; if ( $ apiObject ) { return view ( 'events.show' , compact ( 'event' , 'apiObject' ) ) ; } abort ( 404 ) ; }
Displays the specified event.

@param int|string $id

@return \Illuminate\View\View
Displays the specified event .