ispmanager
- 1 ответ
- 0 вопросов
0
Вклад в тег
public function topic()
{
return $this->hasMany(Topic::class, 'event_id', 'event_id');
}
public function event(): BelongsTo
{
return $this->belongsTo(Event::class, 'event_id', 'event_id');
}
public function speaker()
{
return $this->hasMany(Speaker::class, 'topic_id', 'topic_id');
}
public function topic(): BelongsTo
{
return $this->belongsTo(Topic::class, 'topic_id', 'topic_id');
}