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
The 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.
Publish the configuration
The SDK and ORM keep their configuration separate. Publish both files.
This 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.