public function detect(): Collection
    {
        $this->events->dispatch('orchestra.extension: detecting');

        return \tap($this->finder()->detect(), function ($extensions) {
            $this->memory->put('extensions.available', $extensions->map(function ($item) {
                return Arr::except($item, ['description', 'author', 'url', 'version']);
            })->all());
        });
    }
public function detect(): Collection
    {
        $this->events->dispatch('orchestra.extension: detecting');

        return \tap($this->finder()->detect(), function ($extensions) {
            $this->memory->put('extensions.available', $extensions->map(function ($item) {
                return Arr::except($item, ['description', 'author', 'url', 'version']);
            })->all());
        });
    }
public function detect ( ) : Collection { $ this -> events -> dispatch ( 'orchestra.extension: detecting' ) ; return \ tap ( $ this -> finder ( ) -> detect ( ) , function ( $ extensions ) { $ this -> memory -> put ( 'extensions.available' , $ extensions -> map ( function ( $ item ) { return Arr :: except ( $ item , [ 'description' , 'author' , 'url' , 'version' ] ) ; } ) -> all ( ) ) ; } ) ; }
Detect all extensions.

@return \Illuminate\Support\Collection
Detect all extensions .