Level 3
SOLVED, USED "belongsToMany('Workshop', 'program_workshops')" Thanks all!
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I have 3 tables in DB.
I need to give all Workshops from Program model, how can i do this?
I use this: return $this->hasManyThrough('ProgramWorkshop', 'Workshop', 'id', 'workshop_id');
But Its not works.. ( Help me pls
Please or to participate in this conversation.