Laravel phpStom代码提示

Laravel phpStom代码提示

Laravel phpStom代码提示

使用composer安装laravel-ide-helper

composer require barryvdh/laravel-ide-helper


Laravel 5.6 直接在composer.json中加入

"extra": {
    "laravel": {
        "providers": [
            "Barryvdh\\Debugbar\\ServiceProvider"
        ],
        "aliases": {
            "Debugbar": "Barryvdh\\Debugbar\\Facade"
        },
        "dont-discover": [
        ]
    }
},


生成Model phpDoc (根据数据库字段生成)

php artisan ide-helper:models


参考链接:http://laravelacademy.org/post/3716.html

                  http://laravelacademy.org/post/4202.html