Analyzer::Php::Folio
Inherits Analyzer::Php::PhpEngine < FileScanEngine < Analyzer < FileHelper < Reference < Object
Laravel Folio maps Blade views under a mounted directory to GET routes:
Folio::path(resource_path('views/pages'))->uri('/')->middleware([
'admin/*' => ['auth'],
]);
pages/users/index.blade.php → GET /users
pages/users/[User].blade.php → GET /users/{user}
pages/docs/[...slug].blade.php → GET /docs/{slug}
Mounts come from Folio::path(...) chains in service providers; with
none found the installer default (resources/views/pages at /) is
used. Middleware from the mount's pattern map and from the page's own
middleware([...]) call is reported as a tag.
Constants
Folio::path(...), or Folio::domain('admin.example.com')->path(...)
for a subdomain mount.
Class methods
Instance methods
Instance-side view of the same declaration. The per-file rescues live on
this base class, which has no way to name the analyzer that is running
inside them, so a skipped file could not be attributed to a tech.
Deriving it from analyzer_for keeps the name written exactly once.