Publish the config file to change any of these options:
php artisan vendor:publish --tag="essentials-config"
| Key | Env | Default | Description |
|---|---|---|---|
configurables |
ESSENTIALS_CONFIGURABLES |
see Configurables | The list of configurable classes to apply on boot. |
morph_map |
ESSENTIALS_MORPH_MAP |
[] |
alias => Model::class pairs, enforced with Relation::enforceMorphMap(). |
See Configurables for what each entry in configurables does.
// config/essentials.php
'morph_map' => [
'user' => App\Models\User::class,
'post' => Domain\Posts\Models\Post::class,
],