Skip to content

Laravel route extraction captures ~2% of routes (13 nodes from 687 definitions) #1214

Description

@asemraza

Version: 0.9.0, macOS arm64. Same Laravel 12 repo as #1211.

Observation: the project has 687 route definitions (490 in routes/web.php, 197 in routes/api.php), all using standard Laravel facade syntax - Route::get('path', [Controller::class, 'method']), route groups with prefixes/middleware, plus some closure routes. The graph contains only 13 Route nodes (~2% coverage).

Impact: for Laravel projects, Route-dependent features are effectively unavailable - cross-service route-to-call-site matching, entry-point exclusion in dead-code detection (route handlers without Route nodes risk being classified as zero-caller dead code), and route-level architecture views.

Likely gap: extraction seems not to handle the Route::VERB(...) facade patterns and/or [Controller::class, 'method'] action arrays inside Route::group blocks. Happy to provide sanitized route-file excerpts if useful.

Related context: PHP Hybrid LSP otherwise works well for us (16,870 nodes on this repo).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingparsing/qualityGraph extraction bugs, false positives, missing edgespriority/highNeeds near-term maintainer attention; high-impact bug, regression, safety issue, or release blocker.ux/behaviorDisplay bugs, docs, adoption UX

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions