Comments (5)
Hi there, glad I could help.
Your issue might be missing a few files. As php like TS and JS is a dynamically typed language, LSPs really struggles with the "laravel magic" sometimes.
In this case, my guess would be that the laravel ide helper might solve your issues: https://github.com/barryvdh/laravel-ide-helper
Install it into your laravel app and run the thing, it will generate supplementary files with types based on your model definitions and your database.
Let me know if that helped!
from lazyvim.
Also, make sure to install larastan into the project if you copied my phpstan stuff, too :)
from lazyvim.
Thank you very much, will do and report back 👍
from lazyvim.
@adicco As I haven't heard back I assume that worked :)
from lazyvim.
@kauffinger the laravel-ide-helper breaks with the latest php-parser 5. Since I am a newcomer to this ecosystem I didn't want to force install it and potentially get into a messy situation with conflicting dependencies. So I am waiting for them to fix that, and will follow up on this when I get to install it. Thank you!
from lazyvim.
Related Issues (8)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lazyvim.