Skip to content

How to overwrite internal statamic routes? #4601

Answered by jasonvarga
torian257x asked this question in Q&A
Discussion options

You must be logged in to vote

In a service provider you can use the Statamic::pushWebRoutes closure. This will add web routes that get loaded before we create our catch-all route.

\Statamic\Statamic::pushWebRoutes(function () {
    Route::get(...);
});

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@torian257x
Comment options

Answer selected by torian257x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants