Disable a Feature
Introduction
Disabling an EvoLayer Base feature drops its routes and hides its navigation entry, safely removing it from the host application surface. The shared Inertia prop still carries the feature key but reports it as false.
Step 1 — Disabling the Flag
Open your .env file and set the target feature to false.
env
EVOLAYER_BASE_EXAMPLE_MARKETING_PAGES=falseStep 2 — Handling Fallbacks
If you disable a core route (like the marketing pages), ensure you update your host application to handle the fallback.
For example, if you remove the marketing pages, you must:
- Update the Fortify redirect (
fortify.home) inconfig/fortify.phpto point to a new authenticated landing route. - Define your own public
/route inroutes/web.phpto replace the one EvoLayer provided.
Was this page helpful?
Source: xuple/evodevops/resources/js/pages/docs/evolayer-base/how-to/disable-a-feature.tsx