src/Foundation/Bootstrap/RegisterClassLoader.php
public function bootstrap(Application $app)
    {
        $loader = new ClassLoader(
            new Filesystem,
            $app->basePath(),
            $app->getCachedClassesPath()
        );

        $app->instance(ClassLoader::class, $loader);

        $loader->register();

        $loader->addDirectories([
            'app',
            'extensions',
        ]);

        $app->after(function () use ($loader) {
            $loader->store();
        });
    }
public function bootstrap(Application $app)
    {
        $loader = new ClassLoader(
            new Filesystem,
            $app->basePath(),
            $app->getCachedClassesPath()
        );

        $app->instance(ClassLoader::class, $loader);

        $loader->register();

        $loader->addDirectories([
            'app',
            'extensions',
        ]);

        $app->after(function () use ($loader) {
            $loader->store();
        });
    }
Register Auto Loader

@param  \Illuminate\Contracts\Foundation\Application $app

@return void