'admin/piece'], function () { Route::resource('piece', 'PieceAdminController'); }); // User routes for piece Route::group(['prefix' => 'user/piece'], function () { Route::resource('piece', 'PieceUserController'); }); // Public routes for piece Route::group(['prefix' => 'pieces'], function () { Route::get('/', 'PiecePublicController@index'); Route::get('/{slug?}', 'PiecePublicController@show'); });