Laravel Essentials

Configuration

Configuration Reference

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. The env variable takes a comma-separated list of classes.
trusted_proxies TRUSTED_PROXIES null The proxies to trust, set with TrustProxies::at(). auto picks them for Laravel Cloud or elsewhere. See Trusting proxies.
morph_map — [] alias => Model::class pairs, enforced with Relation::enforceMorphMap().

See Configurables for what each entry in configurables does.

Morph map example

// config/essentials.php
'morph_map' => [
    'user' => App\Models\User::class,
    'post' => Domain\Posts\Models\Post::class,
],