Cloud HostingLaunch UnoPim on fully-managed cloud hosting — fast, secure and cost-effective plans.
Skip to content

Configuration

DAM has a settings page at DAM → Configuration for changing how the media library behaves — without editing .env or redeploying.

DAM > Configuration page showing the Interface Settings and Directory Settings cards with their toggles

Change what you need and click Save. You will see "Configuration saved successfully." The relevant caches are cleared for you automatically.

NOTE

Viewing the page requires dam.configuration.index; saving requires dam.configuration.update. Without the update permission the form is shown read-only.


Interface Settings

Configure the DAM interface and browsing experience.

SettingDefaultWhat it does
Enable Explore ViewOffReplaces the default asset grid with the multi-tab folder Explorer.
Show Bookmark PanelOffShows a sidebar of bookmarked folders for quick access. This row only appears once Explore View is on.

Directory Settings

Configure how folders and assets are displayed in the directory panel.

SettingDefaultWhat it does
Show Directory TreeOnShows the folder hierarchy in the left sidebar.
Show Assets in Directory TreeOffAssets appear as leaf nodes inside the tree, not just folders. This row only appears while Show Directory Tree is on.

How the Toggles Affect Each Other

These four switches are interdependent, which is why some of them appear, disappear, or move on their own as you click. The rules are:

What you doWhat happens automatically
Turn Enable Explore View onShow Bookmark Panel appears and is switched on for you
Turn Enable Explore View offShow Bookmark Panel is hidden, and Show Directory Tree is forced on and locked
Turn Show Directory Tree onShow Assets in Directory Tree appears and is switched on for you
Turn Show Directory Tree offShow Assets in Directory Tree is hidden

IMPORTANT

Show Directory Tree cannot be turned off while Explore View is off. With no Explorer to browse in, the tree is the only way to navigate, so DAM forces it on, greys the toggle out, and shows the hint "Always on while Explore View is disabled." Turn Explore View on first if you want to hide the tree.

Enabling a parent switches its child on as a convenience, not a constraint — you are free to switch the child back off afterwards and save.


Show Assets in Directory Tree

Off by default, and that default is deliberate. With it on, the tree loads assets as well as folders, which is convenient on a small library and slow on a large one.

When enabled, assets load lazily — DAM fetches directories in batches of 100 with a Load more control, and only pulls a directory's assets when you actually expand it. Even so, on libraries with tens of thousands of assets you will feel the difference. Leave it off unless you need it.


Environment Variables

The four settings above can also be set in .env. They map like this:

Env varSettingDefault
DAM_TREE_SHOW_ASSETSShow Assets in Directory Treefalse
DAM_EXPLORER_ENABLEDEnable Explore Viewfalse
DAM_EXPLORER_BOOKMARKS_ENABLEDShow Bookmark Panelfalse
DAM_EXPLORER_SHOW_TREEShow Directory Treetrue

IMPORTANT

The Configuration page wins over .env. These four values are read from the database on every DAM request and override whatever .env says. If you set DAM_EXPLORER_ENABLED=true in .env but the toggle is off on the Configuration page, Explorer stays off.

Treat the Configuration page as the source of truth and use .env only for the upload settings below, which have no UI.

Upload tuning (env only)

These four have no Configuration-page equivalent and must be set in .env:

Env varDefaultWhat it does
DAM_UPLOAD_CONCURRENCY4How many files upload in parallel. Raise it on a fast connection, lower it if your server struggles.
DAM_UPLOAD_RESUME_ENABLEDtrueWhether an interrupted upload can be resumed after a browser refresh.
DAM_UPLOAD_RESUME_MAX_BYTES524288000 (500 MB)The largest batch that will be stashed for auto-resume. Bigger batches show "Batch too large to auto-resume after refresh".
DAM_UPLOAD_RESUME_STALE_HOURS24How long a stashed, unfinished upload stays resumable before it is discarded.
ini
DAM_UPLOAD_CONCURRENCY=6
DAM_UPLOAD_RESUME_ENABLED=true
DAM_UPLOAD_RESUME_MAX_BYTES=524288000
DAM_UPLOAD_RESUME_STALE_HOURS=24

Remember to clear config cache after editing .env:

bash
php artisan config:clear

Released under the MIT License.