Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need Support for Custom View Functions #62

Open
ferdousanam opened this issue Aug 21, 2022 · 0 comments
Open

Need Support for Custom View Functions #62

ferdousanam opened this issue Aug 21, 2022 · 0 comments

Comments

@ferdousanam
Copy link

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);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants