Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel withwhere

use AppModelsUser;
 
$users = User::withWhereHas('posts', function ($query) {
    $query->where('featured', true);
})->get();
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #laravel #withwhere
ADD COMMENT
Topic
Name
2+9 =