diff --git a/src/FilamentSeoServiceProvider.php b/src/FilamentSeoServiceProvider.php index 9067e66..37b5bc6 100644 --- a/src/FilamentSeoServiceProvider.php +++ b/src/FilamentSeoServiceProvider.php @@ -60,8 +60,6 @@ public function register(): void return new FilamentSeoServices(); }); - $this->guardAgainstInvalidConfiguration(config('filament-seo')); - Blade::directive('filamentSEO', function () { return view('filament-seo::directive'); @@ -79,29 +77,4 @@ public function boot(): void { //you boot methods here } - - private static function getSections(){ - return app()->view->getSections(); - } - - - private function multiLang($value){ - return app()->getLocale() === 'en' ? str($value)->explode('|')[0]??$value : str($value)->explode('|')[1]??$value; - } - - /** - * @param array|null $searchConsoleConfig - * - * @throws InvalidConfiguration - */ - protected function guardAgainstInvalidConfiguration(array $searchConsoleConfig = null): void - { - if ($searchConsoleConfig['auth_type'] == 'service_account' && ! file_exists($searchConsoleConfig['connections']['service_account']['application_credentials'])) { - throw InvalidConfiguration::credentialsJsonDoesNotExist($searchConsoleConfig['connections']['service_account']['application_credentials']); - } - - if ($searchConsoleConfig['auth_type'] == 'oauth_json' && ! file_exists($searchConsoleConfig['connections']['oauth_json']['auth_config'])) { - throw InvalidConfiguration::credentialsJsonDoesNotExist($searchConsoleConfig['connections']['oauth_json']['auth_config']); - } - } }