codingyu / laravel-goto-view

vscode extension
MIT License
45 stars 28 forks source link

Need Support for Custom View Functions #62

Open ferdousanam opened 2 years ago

ferdousanam commented 2 years ago

In Laravel Idea PhpStorm plugin there is a settings for custom view functions.

Reference: https://laravel-idea.com/docs/ide_json

{
    "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);
}