I have a question about custom routes set in routes.php
. Can route segment be optional?
Taking example from docs - 'blog/archive/<year:\d{4}>' => 'controller/action/path'
, can we make year token optional in url and still match route when someone vists blog/archive
?