laravel-idea / plugin

Laravel Idea plugin for PhpStorm
https://laravel-idea.com/
160 stars 7 forks source link

[Feature Request]: Livewire 3 Support #796

Open rahatsagor opened 11 months ago

rahatsagor commented 11 months ago

Feature Description

On July 20th, Laravel-Livewire version 3 was launched, but it seems that the current version of laravel-idea is not compatible with it. Unfortunately, it is not functioning properly with Livewire V3. We request an update that supports Livewire v3 be released as soon as possible.

alexcutts2 commented 11 months ago

The only thing which appears to need correcting is that Livewire3 defaults to "app/Livewire" rather than "app/Http/Livewire" - I haven't found any other issues and I've been using the beta with Laravel Idea - when they generate in the wrong location I've been removing them and running composer dump

rahatsagor commented 11 months ago

The only thing which appears to need correcting is that Livewire3 defaults to "app/Livewire" rather than "app/Http/Livewire" - I haven't found any other issues and I've been using the beta with Laravel Idea - when they generate in the wrong location I've been removing them and running composer dump

If you're using it just to create Livewire Components, then it's okay. But we're talking about all those new stuff of Livewire 3, like the new wire:navigate syntax, Rule attribute auto-completion, etc.

adelf commented 11 months ago

Quick update: I've installed 3.0 version and playing with it. The default namespace already changed. Working on other new stuff.

I understand that you want Livewire3 support in Laravel Idea even before the official release, but it's impossible. Sorry)

adelf commented 11 months ago

But we're talking about all those new stuff of Livewire 3, like the new wire:navigate syntax, Rule attribute auto-completion, etc.

This is added. I'm working on Volt support now. If someone wants to add some features which should be added/changed according to Livewire 3, welcome.

rahatsagor commented 11 months ago

But we're talking about all those new stuff of Livewire 3, like the new wire:navigate syntax, Rule attribute auto-completion, etc.

This is added. I'm working on Volt support now. If someone wants to add some features which should be added/changed according to Livewire 3, welcome.

Thanks for the hard work! Please add support for computed properties. Currently, it's not recognized in the view files.

sohailahmad07 commented 10 months ago

i am on the latest version (7.2.0.232) but i don't get auto-completion for rules in livewire

image

rahatsagor commented 10 months ago

i am on the latest version (7.2.0.232) but i don't get auto-completion for rules in livewire

image

This particular version was released on July 17th, prior to the introduction of Livewire 3.

sohailahmad07 commented 10 months ago

ok so when will the new version be released

sanderdewijs commented 9 months ago

One thing I noticed is that if you are using LiveWire3 the LiveWire 2 folder structure (app/Http/LiveWire), the code completion for components doesn't work in Blade templates. When I type <livewire:[component-name] it's not recognized by the IDE. Did anyone else run into this?

Update: The issue was solved once I moved all the LiveWire classed to app/Livewire

nuernbergerA commented 6 months ago

@adelf maybe you can add an config option to define the namespace (app/Livewire or app/Http/Livewire)?

ju5t commented 3 weeks ago

Please add support for computed properties. Currently, it's not recognized in the view files.

It's not recognised by in the component either.

nuernbergerA commented 2 weeks ago

https://x.com/laravel_idea/status/1802644596112921005?t=kbjSCcRDWMjmBQaiCVzWEA&s=19