Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function show(Post $post){
- $postWithComments = Post::where('id', $post->id)->with('comments')->first();
- }
- public function show(Post $post){
- $postWithComments = $post->with('comments')->first();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement