set_route_guard('web').'/plan'], function () { Route::resource('plan', 'PlanResourceController'); }); // Public routes for plan Route::get('plan/popular/{period?}', 'PlanPublicController@popular'); Route::get('plans/', 'PlanPublicController@index'); Route::get('plans/{slug?}', 'PlanPublicController@show'); // Resource routes for feature Route::group(['prefix' => set_route_guard('web').'/plan'], function () { Route::resource('feature', 'FeatureResourceController'); }); // Public routes for feature Route::get('feature/popular/{period?}', 'FeaturePublicController@popular'); Route::get('plans/', 'FeaturePublicController@index'); Route::get('plans/{slug?}', 'FeaturePublicController@show'); // Resource routes for subscription_usage Route::group(['prefix' => set_route_guard('web').'/plan'], function () { Route::resource('subscription_usage', 'SubscriptionUsageResourceController'); }); // Public routes for subscription_usage Route::get('subscription_usage/popular/{period?}', 'SubscriptionUsagePublicController@popular'); Route::get('plans/', 'SubscriptionUsagePublicController@index'); Route::get('plans/{slug?}', 'SubscriptionUsagePublicController@show'); // Resource routes for subscription Route::group(['prefix' => set_route_guard('web').'/plan'], function () { Route::resource('subscription', 'SubscriptionResourceController'); }); // Public routes for subscription Route::get('subscription/popular/{period?}', 'SubscriptionPublicController@popular'); Route::get('plans/', 'SubscriptionPublicController@index'); Route::get('plans/{slug?}', 'SubscriptionPublicController@show');