S
S
sorry_i_noob2018-12-25 17:28:03
phpstorm
sorry_i_noob, 2018-12-25 17:28:03

Why is PhpStorm not seeing some classes/namespaces in a Laravel project?

Hello. Started learning Laravel, installed this project: https://github.com/jcc/blog . I began to look at the files and saw that PhpStorm does not see some classes / namespaces for many files. I hover and see: "Undefined class Model", for example. I am attaching screenshots. How to fix this error? The project itself starts up and works great.

Screenshots
5c223e3d020c1909870046.png5c223e44b2a75753328845.png

PS Installed regular Laravel (Composer command: laravel new blog). Began to look files - there the same.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vlad, 2018-12-25
@sorry_i_noob

Install laravel -ide-helper and generate everything you need, as well as install the "Laravel Plugin" plugin in phpStorm and enable it for your project.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question