Hi. How can I have optional parameters in a route?
for example in Laravel 4, I could do this:
Route::get('/somewhere/{param1?}, [ 'use' => '[email protected]' ] );
The Param1
is optional in above route. so User can navigate to
https://www.example.com/somewhere/xyz
AND
https://www.example.com/somewhere
How can I do that in phalconphp?