cara meneruskan parameter ke hubungan laravel

$users = User::with(['posts' => function($query)
{
    $query->where('title', 'like', '%first%');

}])->get();
Kriss Sachintha