protected function registerActivation(License $license, string $domain, string $ip)
LicenseActivation::updateOrCreate( ['license_id' => $license->id, 'domain' => $domain], ['ip' => $ip, 'last_verified_at' => now()] ); laravel license key system
$license = License::where('key', $key)->first(); protected function registerActivation(License $license
if (!$result['valid']) return response()->json(['error' => $result['message']], 403); $license = License::where('key'
if ($activeDomains >= $license->max_domains) // allow if this domain is already activated return $license->activations()->where('domain', $domain)->exists();
(in their Laravel app):
( api.php ):