I have my laravel route like this
Route::get('flight/{depdate}/{from}/{to}/{ftype}/{retdate?}/{total}/{class}',
'airlineController@index');
In this case when I call this route like this it works
http://localhost:8000/flight/2017-09-20/mumbai/delhi/return/2017-09-
20/2/business
But when I keep retdate optional while calling lie the below code the route is not found
http://localhost:8000/flight/2017-09-20/mumbai/delhi/one-way/2/business
what should i do to take care of the optional parameter retdate
thankxx any help will be appreciated
Route::get('flight/{depdate}/{from}/{to}/{ftype}/{total}/{class}/{retdate?}', 'airlineController@index');<your route>?return=date&your additional optional parameters