[minor] correct publishing the config file not working

When Publishing the config file

php artisan vendor:publish --provider="Laragear\WebAuthn\WebAuthnServiceProvider" --tag="config"

Will Return

"INFO  No publishable resources for tag [config]."

LINE FOR CONFIG WAS MISSING
This commit is contained in:
Fidelis E. Peter
2022-10-23 01:32:27 +01:00
committed by GitHub
parent 7f628f9a79
commit 07283858a9

View File

@@ -46,6 +46,7 @@ class WebAuthnServiceProvider extends ServiceProvider
$this->publishesMigrations(static::MIGRATIONS);
$this->publishes([static::ROUTES => $this->app->basePath('routes/webauthn.php')], 'routes');
// @phpstan-ignore-next-line
$this->publishes([static::CONFIG => $this->app->configPath('webauthn.php')], 'config');
$this->publishes([static::CONTROLLERS => $this->app->path('Http/Controllers/WebAuthn')], 'controllers');
$this->publishes([static::JS => $this->app->resourcePath('js/vendor/webauthn')], 'js');
}