silkfire
silkfire

Reputation: 25935

Laravel URLs with query parameters

I want to implement a link in my application, but instead of it following this format:

/origin/{number}

I want it to look like this:

/origin=number

How do I implement a route successfully which will understand this link format? Surely Laravel is flexible enough to not only be able to parse slash-based URLs?

Upvotes: 2

Views: 237

Answers (1)

Bogdan
Bogdan

Reputation: 44526

This should work:

Route::get('/origin={number}', ...);

Upvotes: 4

Related Questions