group(function () { Route::resource('tender', 'TenderResourceController'); }); // Guard routes for contract Route::prefix('{guard}/contractsform')->group(function () { Route::resource('contract', 'ContractResourceController'); }); // Guard routes for deal Route::prefix('{guard}/contractsform')->group(function () { Route::resource('deal', 'DealResourceController'); }); // Guard routes for quotation Route::prefix('{guard}/contractsform')->group(function () { Route::resource('quotation', 'QuotationResourceController'); }); // Guard routes for certificate Route::prefix('{guard}/contractsform')->group(function () { Route::resource('certificate', 'CertificateResourceController'); }); // Public routes for contractsform Route::get('contractsforms/', 'ContractsformPublicController@index'); Route::get('contractsform/{slug?}', 'ContractsformPublicController@show');