Giter Club home page Giter Club logo

Comments (5)

kauffinger avatar kauffinger commented on July 18, 2024

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.

kauffinger avatar kauffinger commented on July 18, 2024

Also, make sure to install larastan into the project if you copied my phpstan stuff, too :)

from lazyvim.

adicco avatar adicco commented on July 18, 2024

Thank you very much, will do and report back 👍

from lazyvim.

kauffinger avatar kauffinger commented on July 18, 2024

@adicco As I haven't heard back I assume that worked :)

from lazyvim.

adicco avatar adicco commented on July 18, 2024

@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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.