The video in the accepted answer explains this just fine, here is my text version:
at the command prompt and do:
composer require barryvdh/laravel-ide-helper
following type and execute:
php artisan ide-helper:generate
This will create a file called _ide_helper.php that helps PHPStorm / IntelliJ recognize facades (add this file to your .gitignore, as it is not part of your code).
Go back to your PHPStorm or IntelliJ and you will see that facades are recognized and autocomplete works!
Source code: https://github.com/barryvdh/laravel-ide-helper
Asimov
source share