- composer require barryvdh/laravel-ide-helper
如果conposer报错,安装一下openssl试试,注意安装应该是root用户下
# apt-get install openssl
-
config/app.php里的provider中添加
Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class,
-
运行以下命令
php artisan clear-compiled
php artisan ide-helper:generate
php artisan optimize
4.如果在项目根目录下有_ide_helper.php就ok了
网友评论