group(function () { Route::get('brmagazin/form/{element}', 'BrmagazinAPIController@form'); Route::resource('brmagazin', 'BrmagazinAPIController'); }); // Public routes for brmagazin Route::get('projects/', 'BrmagazinPublicController@index'); Route::get('projects/{slug?}', 'BrmagazinPublicController@show'); if (Trans::isMultilingual()) { Route::group( [ 'prefix' => '{trans}', 'where' => ['trans' => Trans::keys('|')], ], function () { // Guard routes for projects Route::prefix('{guard}/project')->group(function () { Route::get('brmagazin/form/{element}', 'BrmagazinAPIController@form'); Route::apiResource('brmagazin', 'BrmagazinAPIController'); }); // Public routes for projects Route::get('project/Brmagazin', 'BrmagazinPublicController@getBrmagazin'); } ); }