Skip to content

Investigate potential for a "conditional" on routes #4

Description

@splashsky

While I don't want to complicate the router more than necessary, having a concise way to add route "conditions" (e.g. a user being logged in) in the router might be handy.

I don't want to escalate to the level of Laravel's powerful Middleware, but a simple ->if(Auth::loggedIn()) type of method you can chain onto the Router::get() method is worth investigating.

Would also address steampixel#44.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions