Install the integration with Composer. It requires PHP 8.4 or later and Laravel 11, 12, or 13, and pulls in the alpha SDK and Surqlize ORM.
Install the package
composer require surrealdb/laravelThe integration depends on alpha releases, so your project must allow them. If Composer cannot resolve the dependencies under the default stable minimum stability, lower it.
composer config minimum-stability alpha
composer config prefer-stable truePublish the configuration
The SDK and ORM keep their configuration separate. Publish both files.
php artisan vendor:publish --tag=surrealdb-config
php artisan vendor:publish --tag=surqlize-configThis creates config/surrealdb.php for the SDK client and config/surqlize.php for the ORM.
Service provider discovery
Laravel auto-discovers the two service providers, so there is nothing to register manually. See Container and facades for what they bind.