Skip to content

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

Closed
@jasonlewis

Description

@jasonlewis

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