# Bringing Neo4j into Laravel

DevFeed: [Bringing Neo4j into Laravel](<https://devfeed.tech/articles/bringing-neo4j-into-laravel-95717.md>)

Original publisher: [Read original article](<https://neo4j.com/blog/developer/bringing-neo4j-into-laravel/>)

Author: Jocelyn Hoppa

Published: 2026-10-22T08:14:00Z

Content type: article

Language: en

Sources: [Neo4j](<https://devfeed.tech/sources/graph-database-technology-neo4j-blog.md>)

Topics: [Neo4j](<https://devfeed.tech/topics/neo4j.md>), [graph-database](<https://devfeed.tech/topics/graph-database.md>), [Laravel](<https://devfeed.tech/topics/laravel.md>), [Eloquent ORM](<https://devfeed.tech/topics/eloquent.md>)

Tags: [database](<https://devfeed.tech/tags/database.md>), [developer](<https://devfeed.tech/tags/developer.md>), [eloquent](<https://devfeed.tech/tags/eloquent.md>), [graph](<https://devfeed.tech/tags/graph.md>), [graph-database](<https://devfeed.tech/tags/graph-database.md>), [laravel](<https://devfeed.tech/tags/laravel.md>), [laravel-eloquent](<https://devfeed.tech/tags/laravel-eloquent.md>), [neo4j](<https://devfeed.tech/tags/neo4j.md>), [php](<https://devfeed.tech/tags/php.md>), [query](<https://devfeed.tech/tags/query.md>)

## AI overview

Neo4j Laravel lets Laravel applications use Neo4j alongside relational databases through a named Laravel database connection, parameterized Cypher queries, the Query Builder, and Eloquent-style models. It supports graph relationship queries and model operations such as lazy and eager loading, attaching, syncing, and detaching, plus transactions, pagination, soft deletes on supported models, query logging, and optional Laravel Debugbar integration. The article presents Neo4j as a secondary connection for relationship-heavy data while MySQL, PostgreSQL, or SQLite handle conventional records. It cautions that using Neo4j as the default connection may limit Laravel features that rely on conventional database behavior and Eloquent authentication, so the documented constraints should be reviewed before choosing an architecture.

## Source excerpt

Graph Database Power Without Leaving the Laravel Ecosystem Laravel developers are used to working with Eloquent, the Query Builder, database connections, and familiar application patterns. But what happens when the data your application needs is not just about records, but... Read more ->