Skip to content

Config option to turn off demo route #1206

Open
@Samvdg

Description

@Samvdg

It's a bit annoying to have an extra page available on your website that's more for admins to test. Not just for users.
And adding a new route redirecting to an error for only this route seems unnecessary when we have a nice option to just create a boolean in the config file. It seems like it SHOULD be a functionality already instead of having to manually add this yourself

If you could add a config variable named 'demo_page_on' or something alike which is standard on true, that'd be great

Using Route::get('/demo', fn() => abort(418)); works fine after loading your routes but it would be more clean to just have a config option

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementOptimization for existing features.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions