Skip to content

Need Support for Custom View Functions #62

Open
@ferdousanam

Description

@ferdousanam

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions