Company
Date Published
Author
Aaron Francis
Word count
424
Language
English
Hacker News points
1

Summary

This guide provides a step-by-step process to get started with Laravel and SingleStoreDB in minutes. To begin, create a fresh Laravel project and require the SingleStoreDB database driver for Laravel. Update the `database.php` configuration file to use the new SingleStoreDB driver and set up connection details in the `.env` file. Modify default Laravel migrations to be compatible with SingleStoreDB's sharding strategy, including changing unique constraints to plain indexes. After making these changes, run `php artisan migrate` and you should see all tables created in SingleStoreDB. The guide also provides further reading resources for more information on using SingleStoreDB with Laravel.