Configuration
v1.1.0Laravel Domain Generator can be customized through its configuration file.
Publish
bash
php artisan vendor:publish --provider="Domain\DomainGenerator\DomainGeneratorServiceProvider"Configuration File
text
config/domain-generator.phpAuthentication
php
'auth' => [
'guard' => 'api',
'login_field' => 'email',
],Public IDs
php
'hash' => [
'driver' => 'ulid',
],Supported values:
uliduuiduuid32
Namespace
Generated classes respect your application's namespace automatically.
Most projects work perfectly with the default configuration.