CSS
- 6 ответов
- 0 вопросов
4
Вклад в тег
.....
/*
Show Event View by event Identify
*/
public function getEvent($id)
{
$event = Event::with([
'event_diplomas'=>function($query)
{
$query->select('id', 'event_id', 'name');
}
])->where("id", '=', $id)->firstOrFail();
dd($event);
}
.....