thanks to Mike Andersen, you put me on the right track, but your number 1 solution doesn't work for me (using Laravel 5).
You need to run "composer update" after making changes to the composer.json file. But, when I did, I got this error:
barryvdh/laravel-ide-helper v1.2.1 requires phpdocumentor/reflection-docblock dev-master
I have another solution:
- remove the line about "barryvdh / laravel-ide-helper" from the require array on the composer.json file.
- run the following line:
composer require barryvdh/laravel-ide-helper
Then you can follow the steps suggested by Mike Andersen:
Add the service provider to the providers array in the config.php file of your Laravel project:
Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider
Then use Artisan to create the _ide_helper.php file for the project (run this command from the terminal in the root of your Laravel project directory):
php artisan ide-helper:generate
Open the project on phpStorm and go to: File|Synchronize .
And you will get an updated laravel project with the latest version of the extension barryvdh / laravel-ide-helper
(Additional info: https://github.com/barryvdh/laravel-ide-helper )
source share