C
C
codenaki2018-04-10 11:59:38
Laravel
codenaki, 2018-04-10 11:59:38

Why can't find the method?

I have "laravel/framework": "5.6.*",no idea why I get undefined in development environment?
I'm using PHPStrom!
5acc7c166cdb3061965628.png5acc7c2a0e571404146358.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
JhaoDa, 2018-04-10
@codenaki

Because these methods work through magic.
Put barryvdh/laravel-ide-helper , pay attention to the section "Automatic phpDocs generation for Laravel Fluent methods" in the package dock, enjoy life.
PS Those who insert the code with screenshots will have a separate cauldron in hell.

A
Alexander Aksentiev, 2018-04-10
@Sanasol

https://github.com/barryvdh/laravel-ide-helper
True, chain calls still suck.
Because everything works on magic

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question