Adel
Adel
Hello. What do you use to fetch columns in Laravel Idea? Migrations or Database connection? If migrations, could you show one of them? If connection, could you show the screenshot...
Ok. As you see, they are in upper case there. So, do you need only lowercase columns in the helper code?
Could you provide an example? The file and code with route? I never used Svelte...
Reproduced. As a workaround, I can recommend the `Model::query()->select()` variant. I'll try to find a way to fix this, but can't promise anything. It's a PhpStorm inspection.
Thank you. We will try option 1.
That's weird. Could you share the first code? Maybe for some reason, PhpStorm can't understand the class for $event variable?
Super weird. I wanted to suggest invalidating caches, but you've already done it... Sorry, as you see, there is needed field in this class, so PhpStorm shouldn't complain.
It's a PhpStorm issue. Let's continue in their bug tracker. https://youtrack.jetbrains.com/issue/WI-79801/Laravel-Model-having-a-method-using-one-of-its-properties-will-cause-Property-accessed-via-magic-method-Warning-even-though
Hello. It should work this way: ```php (new User())->getTable() ```
Fixed. Thanks. The update will be available soon.