whereNull(Video::ATTRIBUTE_SOURCE) ->where(Video::ATTRIBUTE_PATH, ComparisonOperator::NOTLIKE->value, 'misc%'); } /** * Get the badge for the tab. * * @return int */ public function getBadge(): int { return Video::query() ->whereNull(Video::ATTRIBUTE_SOURCE) ->where(Video::ATTRIBUTE_PATH, ComparisonOperator::NOTLIKE->value, 'misc%') ->count(); } }