public function show($resourceId, $eventId)
    {
        $routes = $this->routes;

        $eventable = $this->getEventableRepository()->model()->findOrFail($resourceId);

        if (method_exists($eventable, 'events')) {
            $event = $eventable->events()->find($eventId);

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

                return view('events.eventables.show', compact('routes', 'eventable', 'event', 'apiObject'));
            }
        }

        abort(404);
    }
public function show($resourceId, $eventId)
    {
        $routes = $this->routes;

        $eventable = $this->getEventableRepository()->model()->findOrFail($resourceId);

        if (method_exists($eventable, 'events')) {
            $event = $eventable->events()->find($eventId);

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

                return view('events.eventables.show', compact('routes', 'eventable', 'event', 'apiObject'));
            }
        }

        abort(404);
    }
public function show ( $ resourceId , $ eventId ) { $ routes = $ this -> routes ; $ eventable = $ this -> getEventableRepository ( ) -> model ( ) -> findOrFail ( $ resourceId ) ; if ( method_exists ( $ eventable , 'events' ) ) { $ event = $ eventable -> events ( ) -> find ( $ eventId ) ; if ( $ event ) { $ apiObject = $ this -> event -> findApiObject ( $ event -> api_id ) ; return view ( 'events.eventables.show' , compact ( 'routes' , 'eventable' , 'event' , 'apiObject' ) ) ; } } abort ( 404 ) ; }
Displays the specified event attached to the specified eventable.

@param int|string $resourceId
@param int|string $eventId

@return \Illuminate\View\View
Displays the specified event attached to the specified eventable .