Mona_Salih12's avatar

Need help in relation

Hello everyone,

I want to express my gratitude to everyone here for your help and support. The conversations we've had have been truly productive.

I find myself struggling with understanding relationships between tables and determining the proper relationships needed. Additionally, I'm uncertain about how to construct the appropriate queries in Laravel. If anyone knows of any resources that could assist me, I would greatly appreciate it.

0 likes
1 reply
gych's avatar
gych
Best Answer
Level 29

This are two written guides which will give you a good start:

There's also a free episode available in the Laravel 8 from scratch series with a simple example which should give you a basic idea: https://laracasts.com/series/laravel-8-from-scratch/episodes/19

There's also a complete serie on this but its only for paid subcribers https://laracasts.com/series/eloquent-relationships

This is a good video on deeper relationships, but you should only start with this if you understand the basics https://www.youtube.com/watch?v=5s-_SnVl-1g&t=8s

Check them out and try to implement it in your project, if you get stuck and need some extra help you can always ask.

2 likes

Please or to participate in this conversation.