App\Http\Controllers\Quarx\EventsController::show PHP Method

show() public method

Display the specified Page.
public show ( $id ) : Response
return Response
    public function show($id)
    {
        $event = $this->eventsRepository->findEventById($id);
        if (empty($event)) {
            abort(404);
        }
        return view('quarx-frontend::events.' . $event->template)->with('event', $event);
    }