Support the ongoing development of →
Database Eloquent
Last updated 1 year ago.

If every asset will be linked to only one parent lesson, and every lesson will be linked to only one course, then all of your relations are one-o-many Check the official documentation here: And don't forget to define the inverse relations as well.


either use eloquent relationships or use inner join's in mysql via DB::query


Sign in to participate in this thread!


Your banner here too?

sajeeshe sajeeshe Joined 18 Mar 2016


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 - All rights reserved.