src/Processors/Deactivator.php
public function deactivate(Listener $listener, Fluent $extension)
    {
        if (! $this->factory->started($extension->get('name'))
            && ! $this->factory->activated($extension->get('name'))
        ) {
            return $listener->abortWhenRequirementMismatched();
        }

        $this->factory->deactivate($extension->get('name'));

        return $listener->deactivationHasSucceed($extension);
    }
public function deactivate(Listener $listener, Fluent $extension)
    {
        if (! $this->factory->started($extension->get('name'))
            && ! $this->factory->activated($extension->get('name'))
        ) {
            return $listener->abortWhenRequirementMismatched();
        }

        $this->factory->deactivate($extension->get('name'));

        return $listener->deactivationHasSucceed($extension);
    }
Deactivate an extension.

@param  \Orchestra\Contracts\Extension\Listener\Deactivator  $listener
@param  \Illuminate\Support\Fluent  $extension

@return mixed