I created a module to store all Filament-related files, but I noticed that the panels aren't registered when I load them inside a module (adding them to the module.json providers array). Everything works perfectly if I load the ServiceProvider inside the module directly through the bootstrap/providers.php file.
use Filament\PanelRegistry;
//...
public function register(): void
{
$this->app->resolving(PanelRegistry::class, function () {
dd('test!!!');
});
}
Any idea why the app->resolving callback isn't being called when the ServiceProvider is loaded through the module.json? Thank you!
I created a module to store all Filament-related files, but I noticed that the panels aren't registered when I load them inside a module (adding them to the
module.json
providers array). Everything works perfectly if I load the ServiceProvider inside the module directly through thebootstrap/providers.php
file.Any idea why the
app->resolving
callback isn't being called when the ServiceProvider is loaded through themodule.json
? Thank you!