vendredi 11 décembre 2015

Larvel 5, Method 'findOrFail' not found in class

I'm learning Laravel 5 from the Laracast course: Laravel 5 Fundamentals, using PhpStorm IDE.

I have issue with the static methods of model, such as where(), find(), and findOrFail().

When I use these methods PhpStorm shows:

Method 'findOrFail' not found in class App\Article.

My model is Article, and the method all() works.

How can I solve this?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire