Replies: 2 comments
-
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Temporary Fix: Idea-helper Alias.php
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment



Uh oh!
There was an error while loading. Please reload this page.
-
Package
Panel builder
Package Version
v3.3
How can we help you?
I used the Laravel macro feature to add a check method to the Filament MountableAction class within AppServiceProvider. While the functionality works correctly and has been tested, I want IDE (PhpStorm) to provide proper autocompletion for this method. I attempted to generate the hints using ide-helper:generate, but it did not include the macro method.
After analyzing the ide-helper codebase, I discovered that its macro method generation is incompatible with Filament’s macro structure.
**Root Cause:**
Laravel’s default macro structure follows the format: 'method_name' => Closure.
Filament’s macros use a nested structure: 'method_name' => [CLASS_NAME => Closure].
This mismatch causes ide-helper to encounter errors when retrieving macro methods, resulting in the method being skipped entirely during code generation.
Beta Was this translation helpful? Give feedback.
All reactions