src/TelescopeServiceProvider.php
protected function registerDatabaseDriver()
    {
        $this->app->singleton(
            EntriesRepository::class, DatabaseEntriesRepository::class
        );

        $this->app->singleton(
            ClearableRepository::class, DatabaseEntriesRepository::class
        );

        $this->app->singleton(
            PrunableRepository::class, DatabaseEntriesRepository::class
        );

        $this->app->when(DatabaseEntriesRepository::class)
            ->needs('$connection')
            ->give(config('telescope.storage.database.connection'));

        $this->app->when(DatabaseEntriesRepository::class)
            ->needs('$chunkSize')
            ->give(config('telescope.storage.database.chunk'));
    }
protected function registerDatabaseDriver()
    {
        $this->app->singleton(
            EntriesRepository::class, DatabaseEntriesRepository::class
        );

        $this->app->singleton(
            ClearableRepository::class, DatabaseEntriesRepository::class
        );

        $this->app->singleton(
            PrunableRepository::class, DatabaseEntriesRepository::class
        );

        $this->app->when(DatabaseEntriesRepository::class)
            ->needs('$connection')
            ->give(config('telescope.storage.database.connection'));

        $this->app->when(DatabaseEntriesRepository::class)
            ->needs('$chunkSize')
            ->give(config('telescope.storage.database.chunk'));
    }
protected function registerDatabaseDriver ( ) { $ this -> app -> singleton ( EntriesRepository :: class , DatabaseEntriesRepository :: class ) ; $ this -> app -> singleton ( ClearableRepository :: class , DatabaseEntriesRepository :: class ) ; $ this -> app -> singleton ( PrunableRepository :: class , DatabaseEntriesRepository :: class ) ; $ this -> app -> when ( DatabaseEntriesRepository :: class ) -> needs ( '$connection' ) -> give ( config ( 'telescope.storage.database.connection' ) ) ; $ this -> app -> when ( DatabaseEntriesRepository :: class ) -> needs ( '$chunkSize' ) -> give ( config ( 'telescope.storage.database.chunk' ) ) ; }
Register the package database storage driver.

@return void
Register the package database storage driver .