Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Proposal] Overriding routes by order of declaration. #17

Copy link
Copy link
Closed
@jasonlewis

Description

@jasonlewis
Issue body actions

When a route is added the name generated is appended with microtime(true). This will mean that the first route to be declared will always be given precedence. Should it not be the order in which the two identically named routes are defined.

Currently:

Route::get('/', function()
{
    return 'This one will be run.';
});

Route::get('/', function()
{
    return 'This does not work. The first route is used.';
});

This may be intentional but it makes it really hard to override a route.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.