Commit dbc97f6d by Angel MAS

route dynamic

parent 3b543d73
...@@ -25,6 +25,6 @@ Route::group(['middleware' => ['web', 'auth', 'is_admin']], function(){ ...@@ -25,6 +25,6 @@ Route::group(['middleware' => ['web', 'auth', 'is_admin']], function(){
}); });
Route::group(['middleware' => ['web']], function(){ Route::group(['middleware' => ['web']], function(){
Route::get('portafolio/{slug}', 'Onestartup\Product\Controller\ProductController@show')->name('show.product'); Route::get(env('SLUG_PRODUCTS').'/{slug}', 'Onestartup\Product\Controller\ProductController@show')->name('show.product');
Route::get('portafolio', 'Onestartup\Product\Controller\ProductController@index')->name('main.product'); Route::get(env('SLUG_PRODUCTS'), 'Onestartup\Product\Controller\ProductController@index')->name('main.product');
}); });
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment