Skip to content

Laravel Telescope - using File as Storage Driver #47265

Answered by AnaelBonnafous
Sarthakj02 asked this question in Q&A
Discussion options

You must be logged in to vote

I don't know if there is any other driver for telescope but what you can do is create a dedicated database for telescope. It will act as an unique file to store your telescope entries and they will not be present in your main database.

For that :

  1. Create a telescope.sqlite file under database folder

  2. In config/database.php, create a new connection with sqlite driver

    'connections' => [

        'telescope_sqlite' => [
            'driver' => 'sqlite',
            'url' => env('TELESCOPE_DATABASE_URL'),
            'database' => env('TELESCOPE_DB_DATABASE', database_path('telescope.sqlite')),
            'prefix' => '',
            'foreign_key_constraints' => env('TELESCOPE_DB_FORE…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Sarthakj02
Comment options

Answer selected by Sarthakj02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants