public function getSingleEvent(Event $event) { $events = Event::with('posts')->where('id', '=', $event->id)->paginate(10); SEO::setTitle("{$event->title} - Melbourne Cocoaheads"); SEO::setDescription($event->subtitle); SEO::opengraph()->setUrl($event->url()); SEO::opengraph()->setArticle(['published_time' => $event->created_at, 'modified_time' => $event->modified_at, 'expiration_time' => $event->ends_at, 'author' => 'Jesse Collis', 'section' => 'updates', 'tag' => ['updates']]); return view('events', ['events' => $events, 'title' => $event->title]); }