group(function () { Route::resource('subscription', 'SubscriptionResourceController'); }); // Public routes for subscription Route::get('subscriptions/', 'SubscriptionPublicController@index'); Route::get('subscription/{slug?}', 'SubscriptionPublicController@show'); if (Trans::isMultilingual()) { Route::group( [ 'prefix' => '{trans}', 'where' => ['trans' => Trans::keys('|')], ], function () { // Guard routes for subscription Route::prefix('{guard}/subscription')->group(function () { Route::resource('subscription', 'SubscriptionResourceController'); }); // Public routes for subscription Route::get('subscriptions/', 'SubscriptionPublicController@index'); Route::get('subscription/{slug?}', 'SubscriptionPublicController@show'); } ); }