cara meneruskan variabel di dalam fungsi ke mana di laravel

DB::table('users')->where(function ($query) use ($activated) {
    $query->where('activated', '=', $activated);
})->get();
Said HR