Skip to content

3. Configuration

Timucin edited this page Apr 1, 2025 · 4 revisions

Configuration

database.model_paths

Type: array
Default: ['app/Models']

An array of paths relative to the project directory where application models reside. If there are multiple model and migration paths in a project, the migration files are created in the migration path that is closest to the source model in the directory tree (complicit with nWidart/laravel-modules).

database.auto_infer_migrations

Type: bool
Default: true

This is a boolean value that controls, you guessed it, whether or not to infer the migration information automatically. What this means is basically, unless specified otherwise with an implication, none of the models, properties or methods are going to be inspected for migration information. However, if a property or method of a model has an implication, that model will be inspected. The default is true.

database.implications.<implication_name_in_snake_case>

Type: bool
Default: true

These are boolean values that can be used to enable or disable each implication. The implication names have to be in snake case as per Laravel's convention for configuration keys e.g. database.implications.foreign_key. This set to true by default for all the implications.