src/Manage/ServiceProvider.php
public function search()
    {
        $this->console->info('Searching directory for service providers.');

        $sps = $this->getProviders();

        if (!$sps->count()) {
            $this->console->warn('No service provider file found. Nothing to install.');

            return [];
        }

        $this->console->line(
            " Found {$sps->count()} Service provider".($sps->count() > 1 ? 's' : '').'.'
        );

        $sps->each(function ($sp, $index) {
            $currentCount = $index + 1;

            $this->console->line(" $currentCount. $sp");
        });

        if (!$this->console->confirm('Register service providers?', true)) {
            return [];
        }

        $this->registered = true;

        return $this->getProviders()->toArray();
    }
public function search()
    {
        $this->console->info('Searching directory for service providers.');

        $sps = $this->getProviders();

        if (!$sps->count()) {
            $this->console->warn('No service provider file found. Nothing to install.');

            return [];
        }

        $this->console->line(
            " Found {$sps->count()} Service provider".($sps->count() > 1 ? 's' : '').'.'
        );

        $sps->each(function ($sp, $index) {
            $currentCount = $index + 1;

            $this->console->line(" $currentCount. $sp");
        });

        if (!$this->console->confirm('Register service providers?', true)) {
            return [];
        }

        $this->registered = true;

        return $this->getProviders()->toArray();
    }
Start searching service provider in package.

@return array