Skip to content

tursodatabase/libsql-laravel

Repository files navigation

libSQL Laravel Adapter

libSQL Laravel

Databases for all Laravel Apps.

Turso · Docs · Quickstart · SDK Reference · Blog & Tutorials

MIT License Discord Contributors Total downloads Examples

Features

Warning

This SDK is currently in technical preview. Join us in Discord to report any issues.

Install

composer require turso/libsql-laravel

Quickstart

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"),
        ],

        // ...
    ],
];

Documentation

Visit our official documentation.

Support

Join us on Discord to get help using this SDK. Report security issues via email.

Contributors

See the contributing guide to learn how to get involved.

Contributors

good first issue