Databases for all Laravel Apps.
Turso · Docs · Quickstart · SDK Reference · Blog & Tutorials
- 🔌 Works offline with Embedded Replicas
- 🌎 Works with remote Turso databases (on Fly)
- ✨ Works with Turso AI & Vector Search
- 🐘 Works with Laravel's Eloquent ORM
Warning
This SDK is currently in technical preview. Join us in Discord to report any issues.
composer require turso/libsql-laravel
Inside your Laravel application’s config/database.php
, configure the default
and libsql
connections:
<?php
use Illuminate\Support\Str;
return [
"default" => env("DB_CONNECTION", "libsql"),
"connections" => [
"libsql" => [
"driver" => env("DB_CONNECTION", "libsql"),
"database" => database_path("dev.db"),
],
// ...
],
];
Visit our official documentation.
Join us on Discord to get help using this SDK. Report security issues via email.
See the contributing guide to learn how to get involved.