Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel relationship

$comment = Post::find(1)->comments()
                    ->where('title', 'foo')
                    ->first();
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #laravel #relationship
ADD COMMENT
Topic
Name
3+3 =