getDriverName() === 'sqlite' && $db->getDatabaseName() === ':memory:') || ($db->getDriverName() === 'pgsql' && preg_match('/^compras_receipts_test_[a-f0-9]{12}$/D', $db->getDatabaseName())); if (! app()->environment('testing') || ! app()->runningInConsole() || ! $isolated || request()->hasSession()) { throw new LogicException('Only a sessionless disposable CLI fixture actor may be cleared this way.'); } auth()->forgetGuards(); if (auth()->check()) { throw new LogicException('The synthetic inspection still has an authenticated actor.'); } }