Closed gregorip02 closed 3 years ago
Based on your README.md file, how to transform this.
Country → has many → User → has many → Post → has many → Comment
Country
User
Post
Comment
to:
Comment → belongs to → User → belongs to → Country
and represent this on Comment model like:
<?php // App/Models/Comment.php public function country() { // }
I fixed this with hasOneDeepFromRelations Thanks for your work 👏👏
hasOneDeepFromRelations
Based on your README.md file, how to transform this.
Country
→ has many →User
→ has many →Post
→ has many →Comment
to:
Comment
→ belongs to →User
→ belongs to →Country
and represent this on
Comment
model like: