laravel-multitenant-api/
├── app/
│   ├── DTOs/
│   │   ├── AuthLoginDTO.php
│   │   └── PasswordResetDTO.php
│   ├── Http/
│   │   ├── Controllers/
│   │   │   ├── Api/
│   │   │   │   ├── V1/
│   │   │   │   │   ├── AuthController.php
│   │   │   │   │   └── PasswordResetController.php
│   │   │   │   └── HealthController.php
│   │   │   └── Middleware/
│   │   │       ├── IdentifyTenant.php
│   │   │       └── EnsureTenantDatabase.php
│   │   ├── Requests/
│   │   │   ├── LoginRequest.php
│   │   │   └── ForgotPasswordRequest.php
│   │   └── Resources/
│   │       └── UserResource.php
│   ├── Models/
│   │   ├── Central/
│   │   │   └── Tenant.php
│   │   └── Tenant/
│   │       └── User.php
│   ├── Repositories/
│   │   ├── Contracts/
│   │   │   ├── TenantRepositoryInterface.php
│   │   │   └── UserRepositoryInterface.php
│   │   ├── EloquentTenantRepository.php
│   │   └── EloquentUserRepository.php
│   └── Services/
│       ├── Contracts/
│       │   ├── AuthServiceContract.php
│       │   ├── TenantServiceContract.php
│       │   └── PasswordResetServiceContract.php
│       ├── AuthService.php
│       ├── TenantService.php
│       └── PasswordResetService.php
├── bootstrap/
│   └── app.php
├── config/
│   ├── database.php
│   ├── sanctum.php
│   └── multitenancy.php
├── database/
│   ├── central/
│   │   └── migrations/
│   │       └── 2026_01_01_000000_create_tenants_table.php
│   └── tenant/
│       └── migrations/
│           └── 2026_01_01_000001_create_usuarios_table.php
├── routes/
│   ├── api.php
│   └── console.php
├── .env
├── .env.example
├── composer.json
└── README.md