optional route examples in laravel Example: laravel route optional parameter Route::get('/sample/{param?}', 'SampleController@index');