Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how to get post by comment in laravel

public function getComment($id)
{   
    $post = Post::with('blogcomments')->find($id);
    return view('posts.show')->with('post', $post);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #post #comment #laravel
ADD COMMENT
Topic
Name
6+3 =