Have you googled??? Here is an excellant tutorial:
https://scotch.io/tutorials/a-guide-to-using-eloquent-orm-in-laravel
He covers one to one, one to many, and many to many relations.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community