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