# PÁGINA DE PRODUTO - RELACIONADA AO CARRINHO
Route::get('produtos/{slug?}', 'ProdutoController@getIndex');
Route::controller('produtos', 'ProdutoController');
My current code is the one above and it's working. I did this by the fact that if I just leave the bottom line it does not find the Controller in the following URL with slug - localhost / site / public / products / my-slug-product . So I set a Route just for how long it has a slug.
In this Controller I also have a postPage () . So I made the route down the line. But I do not know if it's the best way. Can you do this on just one Route?
In my ProductController you have:
public function getIndex($slug = null)
public function postInsertProduto()