5 years ago

Laravel and PHPStorm

Posted 5 years ago by ngocphamm

I know this has been mentioned a lot, and I've read most of them. However, today, my attempt to return to PHPStorm (when it's version 9 is still hot served) seems to be a failure.

The tutorial from JetBrains looks good, but it didn't help me out.

This is what bugs me with the IDE, in one screenshot. It cannot know what's where and Illuminate\Database\Eloquent\Relations\BelongsTo come from. The silly thing here is I'm able to Cmd + Click the belongsTo in the code return $this->belongsTo('App\User') inside the author() method (not shown in the screenshot) to navigate to the right code/class.


If anyone has been successfully setup PHPStorm to work nicely with Laravel without yelling a lot, please help.

Thank you guys!

P.S: I'm following this series, and on the video, Jeffrey didn't seem to have the problem. Idk if either he turned off PHP inspection or he had his setup done right.

Please sign in or create an account to participate in this conversation.