group(function () { Route::get('live_feed/form/{element}', 'LiveFeedAPIController@form'); Route::resource('live_feed', 'LiveFeedAPIController'); }); // Public routes for live_feed Route::get('livefeeds/', 'LiveFeedPublicController@index'); Route::get('livefeeds/{slug?}', 'LiveFeedPublicController@show'); if (Trans::isMultilingual()) { Route::group( [ 'prefix' => '{trans}', 'where' => ['trans' => Trans::keys('|')], ], function () { // Guard routes for livefeeds Route::prefix('{guard}/livefeed')->group(function () { Route::get('live_feed/form/{element}', 'LiveFeedAPIController@form'); Route::apiResource('live_feed', 'LiveFeedAPIController'); }); // Public routes for livefeeds Route::get('livefeed/LiveFeed', 'LiveFeedPublicController@getLiveFeed'); } ); }