fix booked

This commit is contained in:
merdan 2020-05-13 17:18:35 +05:00
parent ae49e1b255
commit 76b52d431c
1 changed files with 3 additions and 2 deletions

View File

@ -19,11 +19,12 @@ class EventCheckInController extends MyBaseController
*/ */
public function showCheckIn($event_id) public function showCheckIn($event_id)
{ {
$event = Event::scope()->findOrFail($event_id); $event = Event::scope()->with('attendees')->findOrFail($event_id);
dump($event->attendees);
$data = [ $data = [
'event' => $event, 'event' => $event,
'attendees' => $event->attendees() 'attendees' => $event->attendees
]; ];
JavaScript::put([ JavaScript::put([