name(static::$name) ->hasCommands($this->getCommands()) ->hasInstallCommand(function (InstallCommand $command) { $command ->publishConfigFile() ->askToStarRepoOnGitHub('alexandergabriel/filament-oauth2'); }) ->hasRoutes('web'); $configFileName = $package->shortName(); if (file_exists($package->basePath("/../config/{$configFileName}.php"))) { $package->hasConfigFile(); } if (file_exists($package->basePath('/../resources/lang'))) { $package->hasTranslations(); } if (file_exists($package->basePath('/../resources/views'))) { $package->hasViews(static::$viewNamespace); } } public function packageRegistered(): void {} public function packageBooted(): void { // Testing Testable::mixin(new TestsFilamentOauth2); } /** * @return array */ protected function getCommands(): array { return [ FilamentOauth2Command::class, ]; } /** * @return array */ protected function getRoutes(): array { return []; } }