laravel-goto-view
laravel-goto-view copied to clipboard
Need Support for Custom View Functions
In Laravel Idea PhpStorm plugin there is a settings for custom view functions.
Reference: https://laravel-idea.com/docs/ide_json
- view names for the first parameter of
customView
function
{
"completion": {
"view": [
{
"functions": ["customView"],
"parameters": [1]
}
]
},
"view": {
"paths": [
{
"path": "resources/views"
},
{
"path": "resources/views/custom-view"
}
]
}
}
For example, I have a helper function customView
which is:
function customView($view = null, $data = [], $mergeData = [])
{
return view('custom-view.' . $view, $data, $mergeData);
}