• Start

Languages

/

PHP

/

Frameworks

/

Laravel

Overview

The Laravel integration wires the SurrealDB PHP SDK and the Surqlize ORM into Laravel's config, service container, facades, and Artisan commands.

The Laravel integration connects SurrealDB to a Laravel application. It wires version 2 of the SDK and the Surqlize ORM into Laravel's config, service container, facades, and Artisan commands.

Query execution and the database protocol are delegated to the SDK. Models, query compilation, graph relations, and schema definitions are delegated to Surqlize. The integration adds the Laravel glue: publishable config, container bindings, facades, schema commands, and testing helpers.

It does not replace Laravel's SQL database. SurrealDB runs alongside your existing connections, and the integration does not use Eloquent or config/database.php.

Was this page helpful?