> For the complete documentation index, see [llms.txt](https://docs.ecotone.tech/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ecotone.tech/modules/laravel.md).

# Laravel

Laravel CQRS DDD Event Sourcing with Ecotone

Ecotone integrates with your existing Laravel application — **Eloquent** for aggregate persistence, **Laravel Queues** for async message channels, and **Laravel Octane** for high-performance scenarios. You keep Laravel's developer experience and add enterprise messaging architecture.

## Installation

Follow [Installation menu](/install-php-service-bus.md#install-for-laravel).

{% hint style="success" %}
Ecotone by design looking for Attributes in default Laravel catalog "**app".**\
If your code is kept inside other catalog, provide [namespaces](#namespaces) configuration to load it up.
{% endhint %}

## Materials

### Demo implementation

* [Full Application with UI and integration between Symfony and Laravel](https://github.com/ecotoneframework/php-ddd-cqrs-event-sourcing-symfony-laravel-ecotone)
* [Working with Message Bus (Command/Query Buses) in Laravel](https://github.com/ecotoneframework/quickstart-examples/tree/main/MultiTenant/Laravel/MessageBus)
* [Publishing and consuming Events In Laravel](https://github.com/ecotoneframework/quickstart-examples/tree/main/MultiTenant/Laravel/Events)
* [Working with Asynchronous Events in Laravel](https://github.com/ecotoneframework/quickstart-examples/tree/main/MultiTenant/Laravel/AsynchronousEvents)
* [Working with Eloquent Model as DDD Aggregate in Laravel](https://github.com/ecotoneframework/quickstart-examples/tree/main/MultiTenant/Laravel/Aggregate)
* [Building Event Sourced Applications in Laravel](https://github.com/ecotoneframework/quickstart-examples/tree/main/MultiTenant/Laravel/EventSourcing)
* [Multi-Tenant Examples in Laravel](https://github.com/ecotoneframework/quickstart-examples/tree/main/MultiTenant/Laravel)

### Links

* [DDD and Resilient Messaging With Laravel and Ecotone](https://blog.ecotone.tech/ddd-and-messaging-with-laravel-and-ecotone/)
* [CQRS with Laravel](https://blog.ecotone.tech/build-laravel-application-using-ddd-and-cqrs/)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.ecotone.tech/modules/laravel.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
