Laraphense is code intelligence for productive Laravel development.
You Must have a workspace open having Laravel Installed.
These are the setting you can use.
"Laraphense.maxLinesCount": 1000
default is 1000.
"Laraphense.customValidationRules": {}
for validation rule auto-completion.
"Laraphense.modelsPaths": ["app", "app/Models" ]
these 2 paths are included by default
"Laraphense.viewExtensions": [".blade.php", ".vue" ]
these 2 extensions are included by default
"Laraphense.viewFolders": {
"default": "/resources/views",
"js": "/resources/js/Pages",
"livewire": "/resources/views/livewire",
"vendor": "/resources/views/vendor"
}
these 3 extensions are included by default,
"Laraphense.viewDirectorySeparator": "."
default is ".", you can use "/".
"Laraphense.createViewEveryWhere": true
to enable or disable creating a view file from EveryWhere.
"Laraphense.disableGoToView": false
If you want to disable the go-to view feature, set this to true.
"Laraphense.disableGoToConfig": false
If you want to disable the go-to config feature, set this to true.
"Laraphense.disableAssetCompletion": false
If you want to disable assets autocomplete set this to true.
"Laraphense.disableAuthCompletion": false
If you want to disable auth autocomplete set this to true.
"Laraphense.disableBladeCompletion": false
If you want to disable blade directives autocomplete set this to true.
"Laraphense.disableControllerCompletion": false
If you want to disable Controller autocomplete set this to true.
"Laraphense.disableConfigCompletion": false
If you want to disable config autocomplete set this to true.
"Laraphense.disableCurlyBracesSpacer": false
to enable or disable Curly Braces Spacer. By default, it is enabled
"Laraphense.disableEloquentCompletion": false
If you want to disable Eloquent autocomplete set this to true.
"Laraphense.disableEnvCompletion": false
If you want to disable Env autocomplete set this to true.
"Laraphense.disableMiddlewareCompletion": false
If you want to disable Middleware autocomplete set this to true.
"Laraphense.disableMixCompletion": false
If you want to disable Mix autocomplete set this to true.
"Laraphense.disableRouteCompletion": false
If you want to disable Route autocomplete set this to true.
"Laraphense.disableTranslationCompletion": false
If you want to disable Translation autocomplete set this to true.
"Laraphense.disableValidationCompletion": false
If you want to disable Validation autocomplete set this to true.
"Laraphense.disableViewCompletion": false
If you want to disable View autocomplete set this to true.
"Laraphense.viewRegex": "(?<=view\\(['\"]|.view:.?['\"]|View::make\\(['\"]|nest\\(['\"](.*)['\"],.?['\"]|@include\\(['\"]|@extends\\(['\"]|@component\\(['\"]|@livewire\\(['\"]|Inertia::render\\(['\"]|\\(component:.['\"]|\\<)(\\<x-|\\<livewire:|[^'\" \\>]+)"
this regex is used to match the view files for quick jumping.
"Laraphense.viewCreateRegex": "(?<=View::make\\(['\"]|view\\(['\"]|.view:.['\"]|Inertia::render\\(['\"]|\\(component:.['\"])([^'\"]+)"
this regex is used to match the view files for auto-suggestion.
"Laraphense.phpCommand": "php -r \"{code}\""
this command is used to run PHP for indexing Laravel files.
"Laraphense.basePath": "/core"
this Base path is used to read files.
"Laraphense.basePathForCode": "/core/laravel"
This base path is used for require_once inside the PHP code.
Enjoy!