Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel get post with comments

$post = Post::with('comments')->get()
Source by laracasts.com #
 
PREVIOUS NEXT
Tagged: #laravel #post #comments
ADD COMMENT
Topic
Name
1+1 =