set_route_guard('web').'/testpackage'], function () { Route::resource('post', 'PostResourceController'); }); // Resource routes for category Route::group(['prefix' => set_route_guard('web').'/testpackage'], function () { Route::resource('category', 'CategoryResourceController'); });