How can I integrate Laravel and PhpStorm?

Every time I encode a Laravel framework, I get these IDE warnings. For example, he did not find any method or class like the Eloquent Class.

I searched on google and I found this plugin , but it did not help, in fact I did not see any difference.

Is it even possible to integrate between Laravel and PhpStorm?

0
phpstorm laravel
source share
2 answers

PHPStorm Laravel Facades Problem

Please watch this awesome jeffery PHPStorm Laravel Facades Issue video.

Deep understanding

And if you want to delve deeper into the relationship between Laravel and phpstorm, I highly recommend that you watch Be a great lifestyle at PHPStorm . It has proven extremely useful to me.

+4
source share

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

0
source share

All Articles