diff --git a/src/SriServiceProvider.php b/src/SriServiceProvider.php index 822299c..1110737 100644 --- a/src/SriServiceProvider.php +++ b/src/SriServiceProvider.php @@ -19,6 +19,13 @@ public function register() __DIR__.'/../config/subresource-integrity.php', 'subresource-integrity' ); + } + + public function boot() + { + $this->publishes([ + __DIR__.'/../config/subresource-integrity.php' => config_path('subresource-integrity.php'), + ]); Blade::directive('mixSri', function (string $path, bool $crossOrigin = false) { if (starts_with($path, ['http', 'https', '//'])) { @@ -56,11 +63,4 @@ public function register() } }); } - - public function boot() - { - $this->publishes([ - __DIR__.'/../config/subresource-integrity.php' => config_path('subresource-integrity.php'), - ]); - } }