LibSQL Driver Laravel
Configuration
Configure the database connection
LibSQL has 3 types of connections to interact with the database: Local Connection, Remote Connection, and Remote Replica Connection (Embedded Replica)
Local Connection
To be able to use LibSQL locally as if you were using SQLite, simply change the following .env
:
Ignore other LibSQL .env
variables.
Remote Connection
To use LibSQL Remote Connection only, you can define the following .env
variables:
Remote Replica Connection (Embedded Replica)
To configure remote replica connection (embedded replica), you can simply use the following .env
:
Thatโs it! How easy to make different connection using LibSQL Driver in Laravel, right?!
Database Configuration
Add this configuration at config/database.php
inside the connections
array:
Copy and Paste and do not change it! Or try to change it and will broke your app or give you malfunction.
Was this page helpful?