Pick the correct relationship method for a scenario.
Scenario
A Book belongs to exactly one Author, and an Author can write many Books. On the Book model, which relationship do you define?
Ready to try it?
Create a free account and try "Choosing the Right Eloquent Relationship" free for 7 days, no card required. Earn 70 XP and track your internship progress.