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