fix: use singleton instead of scoped for BC

This commit is contained in:
Ryan Chandler
2021-07-08 19:02:35 +01:00
parent 423a0d3a22
commit d0fb7e5b7f
+3 -5
View File
@@ -34,11 +34,9 @@ class FilamentServiceProvider extends ServiceProvider
public function register()
{
if (method_exists($this->app, 'scoped')) {
$this->app->scoped(FilamentManager::class, function () {
return new FilamentManager;
});
}
$this->app->singleton(FilamentManager::class, function () {
return new FilamentManager;
});
$this->mergeConfigFrom(__DIR__ . '/../config/filament.php', 'filament');