Skip to content

Instantly share code, notes, and snippets.

@lcdss
Forked from ibrunotome/laravel-ddd-approach.md
Created May 27, 2021 21:32
Show Gist options
  • Save lcdss/c792e7effc5a9fc92ff5eaded5e2ea3b to your computer and use it in GitHub Desktop.
Save lcdss/c792e7effc5a9fc92ff5eaded5e2ea3b to your computer and use it in GitHub Desktop.
A Domain Driven Design (DDD) approach to the Laravel Framework
/app
├── /Application
|  ├── /Exceptions
|  ├── /Middlewares
|  ├── /Providers
|  ├── /Requests
├── /Domain
|  ├── /MyDomainA
|  |   ├── /Contracts
|  |   ├── /Entities
|  |   ├── /Repositories
|  |   ├── /Services
|  ├── /MyDomainB
|  |   ├── /Contracts
|  |   ├── /Entities
|  |   ├── /Jobs
|  |   ├── /Listeners
|  |   ├── /Repositories
|  |   ├── /Services
|  ├── .
|  ├── .
|  ├── .
├── /Infrastructure
|  ├── /Contracts
|  |   ├── BaseRepository.php
|  ├── /Jobs
|  |   ├── Job.php (Abstract)
|  ├── /Listeners
|  |   ├── Listener.php (Abstract)
|  ├── /Repositories
|  |   ├── EloquentRepository.php (Abstract)
|  ├── /Scopes
├── /Interfaces
|  ├── /Console
|  |   ├── Kernel.php
|  ├── /Http
|  |   ├── /Controllers
|  |   ├── /Providers
|  |   |   ├── RouteServiceProvider.php
|  |   ├── /Resources
|  |   ├── Kernel.php
/bootstrap
/config
/database
/docker
/public
/resources
/storage
/tests
/vendor
(Other files like .env, artisan, composer.json, etc.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment