{"repo":"richan-fongdasen/turso-laravel","free":true,"listed":false,"github":"https://github.com/richan-fongdasen/turso-laravel","clone":"git clone https://github.com/richan-fongdasen/turso-laravel.git","description":"A Turso/LibSQL database driver for Laravel application","language":"PHP","stars":109,"topics":["laravel","turso","libsql","hrana"],"license":"MIT","category":"databases-storage","readme_excerpt":"A Turso database driver for Laravel This package provides a Turso database driver for Laravel, allowing you to use Turso as your database backend in Laravel applications. The driver communicates with the Turso database server using an HTTP client. You can find a demo application that uses this Turso database driver in the richan-fongdasen/pingcrm repository. Requirements - PHP 8.2 or higher - Laravel 11.0 or higher - Node.js 18 or higher Installation You can install the package via Composer: To use Turso as your database driver in Laravel, append the following configuration to the connections array in your config/database.php file: Publishing Configuration and Sync Script Publish the configuration file and sync script by running the following command: The above command publishes the following files: - config/turso-laravel.php - turso-sync.mjs The content of the config/turso-laravel.php file should look like this: You may need to set the NODE PATH environment variable to the path of your Node.js executable. This is required to run the sync script. Installing Node.js Dependencies The Turso database driver requires Node.js to run the sync script. Install the Node.js dependencies by running the following command: Configuration In Laravel applications, the database driver configuration is stored in your .env file. Here are the available configurations for the Turso database driver: ENV Variable Name Description :---------------- :---------------------------------------------------","default_branch":null,"files":null,"tree":[],"storefront":"/r/richan-fongdasen","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/richan-fongdasen/turso-laravel/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}