src/Core/Application.php
public function loadPlugins(string $pluginsPath)
    {
        $directories = Collection::make((new Filesystem())->directories($this->mupluginsPath()))
            ->map(function ($directory) {
                return ltrim(substr($directory, strrpos($directory, DS)), '\/');
            })->toArray();

        (new PluginsRepository($this, new Filesystem(), $pluginsPath, $this->getCachedPluginsPath()))
            ->load($directories);
    }
public function loadPlugins(string $pluginsPath)
    {
        $directories = Collection::make((new Filesystem())->directories($this->mupluginsPath()))
            ->map(function ($directory) {
                return ltrim(substr($directory, strrpos($directory, DS)), '\/');
            })->toArray();

        (new PluginsRepository($this, new Filesystem(), $pluginsPath, $this->getCachedPluginsPath()))
            ->load($directories);
    }
public function loadPlugins ( string $ pluginsPath ) { $ directories = Collection :: make ( ( new Filesystem ( ) ) -> directories ( $ this -> mupluginsPath ( ) ) ) -> map ( function ( $ directory ) { return ltrim ( substr ( $ directory , strrpos ( $ directory , DS ) ) , '\/' ) ; } ) -> toArray ( ) ; ( new PluginsRepository ( $ this , new Filesystem ( ) , $ pluginsPath , $ this -> getCachedPluginsPath ( ) ) ) -> load ( $ directories ) ; }
Register the framework core "plugin" and auto-load
any found mu-plugins after the framework.

@param string $pluginsPath

@throws \Illuminate\Contracts\Filesystem\FileNotFoundException
@throws \Exception
Register the framework core plugin and auto - load any found mu - plugins after the framework .