laravel-goto-view icon indicating copy to clipboard operation
laravel-goto-view copied to clipboard

Need Support for Custom View Functions

Open ferdousanam opened this issue 2 years ago • 0 comments

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

ferdousanam avatar Aug 21 '22 06:08 ferdousanam