Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Rayan_2018's avatar

PHP Storm Laravel Integration

Hello can you help to fully integrate php storm with laravel for advanced autocomplete ex: when i am using Model Country and try to call find method, php storm not complete it and no suggest find method use App\Country; $cities = Country::find(1)->cities;

0 likes
6 replies
aurawindsurfing's avatar

Hey, guys, do you mind sharing your PHPStorm config settings? I gave it really hard try for 2 days now and I'm about to give up again on this overblown piece of customized s...... and get back to VSCode.

I was trying to get it to recognise my model methods, which worked the day before, now it does not even hint them.

I have Laravel plugin, I run both

php artisan ide-helper:generate
php artisan ide-helper:models

I restarted it, rebuilt the cache... I know it is the best IDE out there but really? What am I missing?

aurawindsurfing's avatar

Ok looks like after days of fiddling with it ain't finally arrived at some sort of sanity point. It is not perfect. Git is so much easier and quicker to manage in VSC but it is ok.

Code formatting, do blocks folding imports, docblock are awesome.

One annoying thing for me is quick switching between files. In VSC it open the file while you release CMD+P and in PS you need to press enter.

Other then that Im pretty happy with it after 4 days of tweaking.

aurawindsurfing's avatar

Yeah it does help however there are small things that will just drive you nuts :-) like for instance I had the same font, the same size, the same spacing and yet the font looked like weight was higher.

Then I realised that it is antyaliasing. VSCode have it disabled. PHPStorm has it enabled to subpixel.

Do you mind sharing which ide_helper files you generate and why?

Please or to participate in this conversation.