You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
yes but the cluster featuer is not available in the plugin,
I opened a PR for it when I encounter this issue
and as I mentioned the curator plugin is just an example tested with other
plugins is the same issue
Unfortunately I don't think this is possible, as the cluster needs to be read when the routing is registered, and the panel may not be booted at that point so the plugins aren't there
Package
filament/filament
Package Version
v3.2.72
Laravel Version
v11.5.0
Livewire Version
v3.4.11
PHP Version
v8.2.10
Problem description
from a plugin class, trying to allow users to set the plugin resource in a cluster
the Reproduction repository already configured to use
CuratorPlugin
and there is a cluster in the app
Life::class
when using the plugin like:
in the plugin resource:
you'll see the error
Call to a member function getPlugin() on null
its look like the clusters not ready when the plugin initialized?!
Expected behavior
when accessing the cluster from a config
it works fin, but not if it set from the class
CuratorPlugin
btw the
CuratorPlugin
was an example, tested with other of my packages got the same error.Steps to reproduce
the Reproduction repository already setup with a cluster and the plugin installed and configerd
using a fork of the plugin:
https://github.com/atmonshi/filament-curator/tree/cluster-panel
when accessing the
/admin
you will get the errorCall to a member function getPlugin() on null
disable this
https://github.com/atmonshi/filament-curator/blob/669af3898dbc74e1dd3803d13c67e9d98b338981/src/Resources/MediaResource.php#L69
to make it work
Reproduction repository
https://github.com/atmonshi/issue-cluster
Relevant log output
No response
The text was updated successfully, but these errors were encountered: