Reputation: 10228
I want to make a route for these two URLs:
http://localhost/myweb/public/compare
http://localhost/myweb/public/compare/fb
Here is the rout I've written:
Route::get('compare/{fb?}', 'compareController@index');
It doesn't work as expected. Because it also works for this:
http://localhost/myweb/public/compare/anythingElse
While I want to devote it only for those two URLs. How can I do that?
Upvotes: 2
Views: 71