Installation
v1.1.0Installing the package takes only a few minutes.
Requirements
| Requirement | Version |
|---|---|
| PHP | 8.2+ |
| Laravel | 11, 12 or 13 |
| Composer | Latest |
Install
Run:
bash
composer require domain/laravel-domain-generatorThe package supports Laravel 11, 12 and 13.
Publish Configuration
bash
php artisan vendor:publish --provider="Domain\DomainGenerator\DomainGeneratorServiceProvider"This publishes the configuration file:
text
config/domain-generator.phpGenerate JWT Secret
bash
php artisan jwt:secretYour application is now ready to generate domains and use the built-in authentication endpoints.
Generate your first domain
bash
php artisan make:domain UserGenerated structure:
text
app/
├── Domain/
│ └── User/
│ ├── DTO/
│ ├── Repositories/
│ └── Service/
├── Http/
│ ├── Controllers/
│ ├── Requests/
│ └── Resources/
└── Models/Next Step
Continue to JWT Authentication.