group(function () { Route::get('news/form/{element}', 'NewsAPIController@form'); Route::resource('news', 'NewsAPIController'); }); if (Trans::isMultilingual()) { Route::group( [ 'prefix' => '{trans}', 'where' => ['trans' => Trans::keys('|')], ], function () { // Guard routes for news Route::prefix('{guard}/news')->group(function () { Route::get('news/form/{element}', 'NewsAPIController@form'); Route::apiResource('news', 'NewsAPIController'); }); // Public routes for news Route::get('news/News', 'NewsPublicController@getNews'); } ); }