Skip to content

Configuration

lpachecob edited this page Mar 22, 2026 · 4 revisions

⚙️ Configuration: boundly.php

Everything in BOUNDLY can be customized. The configuration file config/boundly.php is the bridge between the framework's clean root and its technical basement.


🔝 locale

The default language for CLI output and system messages.

Value Default Description
'en' 'en' English.
'es' 'en' Spanish.
'locale' => 'es',

🌐 api_prefix

The URL segment for all auto-generated endpoints.

Default Description
'api' The prefix for generated actions (e.g., /api/users).
'api_prefix' => 'api',

📂 paths

Where BOUNDLY's discovery engine scans for your code.

Key Default Description
domain base_path('Domain') Path to search for #[Entity] attributes.
application base_path('Application') Path to search for #[Action] attributes.
'paths' => [
    'domain' => base_path('Domain'),
    'application' => base_path('Application'),
],

🧱 Boilerplate Example

// config/boundly.php
return [
    'locale' => 'en',
    'api_prefix' => 'api',
    'paths' => [
        'domain' => base_path('Domain'),
        'application' => base_path('Application'),
    ],
];

🧪 Usage Tips

  1. Environment Aware: Use env() inside boundly.php to change paths in testing or production.
  2. CLI Override: Remember that --lang in any core:* command takes precedence over this file.
  3. Manual Creation: If the file is missing, you can create it manually or copy it from the basement Infrastructure/LaravelEngine/config/boundly.php.

Next Step: Roadmap 🚀

Clone this wiki locally