No Laravel tenho por exemplo:
Route::get( '/produtos/mostra/{id}',
'ProdutoController@mostra'
)->where('id', '[0-9]+');
Como seria feita esse tipo de validação no Lumen? Dado que uma rota é originada pelo $app
:
$app->get('insert', function () {
});
where
no final também ?Call to undefined method Laravel\Lumen\Application::where()