'array', 'domain_whitelist' => 'array', ]; /** * Look up a casino by its plaintext license key. * Hashes the key and queries by hash — plaintext is never stored. */ public static function findByKey(string $key): ?self { return static::where('license_key_hash', hash('sha256', $key))->first(); } public function isActive(): bool { return $this->status === 'active'; } public function sessions() { return $this->hasMany(OperatorSession::class); } }