Call to a member function getId() on null
I have this error "Call to a member function getId() on null" when converting from v2 to v3
In AdminPanelProvider.php
In UserResource
In AdminPanelProvider.php
In UserResource
Solution
Try putting it in a Closure to evaluate it later (if that's supported here)
The issue is, that for the URL you need the current Panel, but you are just in the process of defining that panel.
->url(fn () => UserResource::getUrl('changePassword')))The issue is, that for the URL you need the current Panel, but you are just in the process of defining that panel.