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