Laravel route optional parameter
<p>i have one issue with the Laravel routes.</p>

<p>I have one function <code>index($sport = '', $date = '');</code> this function shows me the news for a specific sport and date. But sometimes these parameters are not entered and I want to display all news. This works so fine so good, the problem is with the route.</p>

<p>This is the route code I have used:</p>

<pre><code>Route::get('/news/{sport?}/{date?}.html', ['as' =&gt; 'news.index', 'uses' =&gt; 'NewsController@index']);
</code></pre>

<p>The problem comes when there is no sport and date entered, than the URL is domain.com/news.html, but is not caught with that code. How can i achieve that ?</p>