Is there a where() method in your Flight model?
Larastan / ORM
Hi all,
I use Larastan for the first time. It found me a bug, good, but ir also complains about this syntax :
Flight::where('active', 1)...
Call to an undefined static method App\Models\Flight::where()
Any explanation? solution?
Thanks in advance.
@sr57 That is really weird. You have paths: app in the config so it shouldn't even scan the vendor directory. Do you have a folder called vendor in your app folder?
And I noticed something. In the phpstan config you posted above you don't include the Larastan extension. It is fine if you also use phpstan/extension-installer but if not you need to add
includes:
- ./vendor/nunomaduro/larastan/extension.neon
to your config file
Please or to participate in this conversation.