Which of the following is correct to retrieve all comments which are associated with single Post (post_id = 1) with one to many relation in Model?
Correct Answer: $comments = App\Post::find(1)->comments;
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Laravel Framework MCQ Questions