Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel defining relationship

$user->posts()->where('active', 1)->get();
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #laravel #defining #relationship
ADD COMMENT
Topic
Name
7+5 =