laravel安装ide-helper

  1. composer require barryvdh/laravel-ide-helper

如果conposer报错,安装一下openssl试试,注意安装应该是root用户下

   # apt-get install openssl
  1. config/app.php里的provider中添加

     Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class,
    
  2. 运行以下命令

php artisan clear-compiled
php artisan ide-helper:generate
php artisan optimize

4.如果在项目根目录下有_ide_helper.php就ok了

你可能感兴趣的:(laravel安装ide-helper)