$detail || $remove > $detail) { throw new RuntimeException('Specific applicant routes must be registered before the detail route'); } if (!preg_match("/Route::post\('customer-center\\/applicant',\s*'CustomerCenter\\/applicant'\)->completeMatch\(\);/", $routes)) { throw new RuntimeException('Applicant detail route must use complete matching'); } echo "Customer center route order self-check passed\n";