src/Concerns/Operation.php
public function deactivate(string $name): bool
    {
        $memory = $this->memory;
        $active = $memory->get('extensions.active', []);

        if (! isset($active[$name])) {
            return false;
        }

        $memory->put('extensions.active', Arr::except($active, $name));
        $this->dispatcher->deactivating($name, $active[$name]);

        return true;
    }
public function deactivate(string $name): bool
    {
        $memory = $this->memory;
        $active = $memory->get('extensions.active', []);

        if (! isset($active[$name])) {
            return false;
        }

        $memory->put('extensions.active', Arr::except($active, $name));
        $this->dispatcher->deactivating($name, $active[$name]);

        return true;
    }
Deactivate an extension.

@param  string  $name

@return bool