src/Components/Database/Provider.php
protected function registerDatabaseService(): void
    {
        $this->app->alias('db', \Illuminate\Database\ConnectionResolverInterface::class);
        $this->app->register(\Illuminate\Database\DatabaseServiceProvider::class);

        if (File::exists($this->app->databasePath('seeds'))) {
            collect(File::files($this->app->databasePath('seeds')))->each(
                function ($file) {
                    File::requireOnce($file);
                }
            );
        }
    }
protected function registerDatabaseService(): void
    {
        $this->app->alias('db', \Illuminate\Database\ConnectionResolverInterface::class);
        $this->app->register(\Illuminate\Database\DatabaseServiceProvider::class);

        if (File::exists($this->app->databasePath('seeds'))) {
            collect(File::files($this->app->databasePath('seeds')))->each(
                function ($file) {
                    File::requireOnce($file);
                }
            );
        }
    }
protected function registerDatabaseService ( ) : void { $ this -> app -> alias ( 'db' , \ Illuminate \ Database \ ConnectionResolverInterface :: class ) ; $ this -> app -> register ( \ Illuminate \ Database \ DatabaseServiceProvider :: class ) ; if ( File :: exists ( $ this -> app -> databasePath ( 'seeds' ) ) ) { collect ( File :: files ( $ this -> app -> databasePath ( 'seeds' ) ) ) -> each ( function ( $ file ) { File :: requireOnce ( $ file ) ; } ) ; } }
Registers the database service.

Makes this Capsule Instance available globally via static methods.
Registers the database service .