Skip to content

Configuration ​

Published to config/laraselector.php.

KeyDefaultPurpose
enabledfalseMaster switch, set through LARASELECTOR_ENABLED.
environmentslocal, devEnvironments where it may run. production is always denied.
editorvscodeEditor for the generated link: one of vscode, vscode-insiders, vscodium, cursor, windsurf, zed, sublime, phpstorm, idea, webstorm, textmate, nova.
application_rootbase_path()Root used to display project-relative paths.
path_mapping[]Map server paths to local paths.
inspect_pathsresources/viewsBlade directories that get marked.
php_inspect_pathsapp/, routes/PHP directories controllers may be opened from.
exclude_pathsresources/views/vendorBlade paths to skip.
token_ttl_seconds300Lifetime of source tokens, in seconds.
editingfalseAllow saving text/class/translation edits to source (LARASELECTOR_EDITING).
lang_pathslang/, resources/langWhere translations are searched.
css_pathsresources/css, sass, scss, less, public/cssWhere CSS classes are traced.
inertia_pathsresources/js/Pages, …Where Inertia page components live.
max_renders / nplus1_threshold400 / 3Inspector limits.

Docker and remote setups ​

php
'path_mapping' => ['/var/www/html' => '/Users/me/project'],

Editors ​

VS Code-family editors use <scheme>://file, Zed uses zed://file, Sublime subl://open, JetBrains <ide>://open; register JetBrains' URL handler if the browser reports an unregistered protocol.

Forms ​

Supported: same-origin relative or absolute actions, GET/POST, _method spoofing and formaction/formmethod on the submit button. Not supported: dynamic JavaScript destinations and external origins.

Limitations ​

LaraSelector marks static HTML tags. It skips malformed markup, dynamic tags containing Blade expressions, component invocation tags, arbitrary Shadow DOM and cross-origin iframes.

MIT License