nWidart / laravel-modules

Module Management In Laravel
https://docs.laravelmodules.com
MIT License
5.5k stars 954 forks source link

Filament panels aren't registered when configured inside a module #1892

Open gsmeira opened 2 months ago

gsmeira commented 2 months ago

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!