$activeDomains = $license->activations() ->where('domain', $domain) ->orWhere('domain', '!=', $domain) ->count();
// Attach license info to request for later use $request->attributes->set('license', $result); laravel license key system
protected function checkDomainLimit(License $license, string $domain): bool $activeDomains = $license->
$license = License::where('key', $key)->first(); protected function checkDomainLimit(License $license
return $next($request);