2

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?

2
  • Route::get('/origin={number}', ...);? The title is also a little misleading as query parameters come after ?. Commented Feb 2, 2015 at 23:30
  • I've posted it as an answer for future reference. Glad I could help. Commented Feb 2, 2015 at 23:34

1 Answer 1

4

This should work:

Route::get('/origin={number}', ...);
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.