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=false

Step 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:

  1. Update the Fortify redirect (fortify.home) in config/fortify.php to point to a new authenticated landing route.
  2. Define your own public / route in routes/web.php to replace the one EvoLayer provided.

Was this page helpful?

Source: xuple/evodevops/resources/js/pages/docs/evolayer-base/how-to/disable-a-feature.tsx