#PhpStorm - no hints

8 messages · Page 1 of 1 (latest)

viscid briar
#

Hi, I use PhpStorm and write in Laravel. Can you tell me why when I use a model and then enter "::" it doesn't give me values ​​for example such as find, select and when I use them I get the information Method 'select' not found in App\Models\User? Is this normal behavior?

Example below, select is underlined and the ->get() method is not underlined but is not prompted either

quartz latch
#

That's because there's some "magic" involved, people tend to use Model::query()->... because of it

#

Totally unrelated to your question, but also beware of performance issues when fetching all rows, leverage pagination as much as you can

viscid briar
quartz latch
#

I believe that's normal yes, tools like Laravel Idea and laravel-ide might help somewhat. Although the latter also comes with other downsides

uneven sun
#

I use laravel-ide-helper, it seems to take care of most of those

fallen gorge
#

I just found out about laravel-ide-helper. Super interested in investigating.

laravel-idea plugin is also pretty great, but not sure if it addresses this specific issue

muted cedar