dimanche 2 septembre 2018

How to get PHPStorm to recognize Laravel Facades?

When using Laravel Framework (5.6), PHPStorm does not recognize methods when accessed via Facades like this:

$user = User::find($id);

So it's always complaining that: "Method 'find' not found in User"

error message

I've got the Laravel Plugin & the Barry IDE Helper. What else do I need to do?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire