diff --git a/src/TomatoSettingsServiceProvider.php b/src/TomatoSettingsServiceProvider.php index 494c5ee..65ff26a 100644 --- a/src/TomatoSettingsServiceProvider.php +++ b/src/TomatoSettingsServiceProvider.php @@ -69,6 +69,10 @@ public function register(): void $this->registerPermissions(); + app()->bind('tomato-settings', function () { + return new SettingHolderHandler(); + }); + } public function boot(): void @@ -84,11 +88,6 @@ public function boot(): void ->route("admin.settings.index") ]); - app()->bind('tomato-settings', function () { - return new SettingHolderHandler(); - }); - - $settings = []; if(config('tomato-settings.settings.seo')){