->RenderHook() problem in AdminPanelProvider.php | Class "Filament\View\PanelsRenderHook" not found
Hello.
I had this same configuration in my last application two months ago and had no problems.
For this new application I am beginning now, I wanted to have the same exact renderHook and used the same in AdminPanelProvider.php
It looks to me as if something is still pending to be installed, because in my previous application where it is working I can right click over the word PanelsRenderHook and click on "Go to definition" and it opens:
vendor\filament\filament\src\View\PanelsRenderHook.php
But with his new one it says it cannot find the definition file "Definition not found".
Any ideas of what I am missing.
Thank you
8 Replies
you didnt import the class:
Tks but of course I have imported the class:
And it is still not working as I mentioned. The most relevant for me, I think, is the fact that this file is missing:
vendor\filament\filament\src\View\PanelsRenderHook.php
which in my previous application two months ago was there and everything worked fine. I could manually copy that file from my previous project for another client but I think this is not a good solution.
Thank you
I have to agree with Albert, i'm trying to use the PanelsRenderHooks and the class seems to not be found. How can we fix this ?
What version are you guys using? Did you try removing vendor and reinstalling?
Yup just removed and installed again, same problem. And =>
Solution
Try updating. v3.2.0 is half a year old.
That fixed it, Thank you.
Probably the same issue for you. Check your version and try updating. If this doesn't fix it, you can tag me.