age <= $minAge; // or the same using Carbon: // return Carbon\Carbon::now()->diff(new Carbon\Carbon($value))->y >= $minAge; }); } }