diff --git a/composer.json b/composer.json index 96c79e6..58c1241 100644 --- a/composer.json +++ b/composer.json @@ -4,9 +4,9 @@ "license": "MIT", "authors": [ { - "name": "Author Name", - "email": "author@email.com", - "homepage": "http://author.com" + "name": "Gerhard Popp", + "email": "gerhard@poppgerhard.at", + "homepage": "https://poppgerhard.at" } ], "php": "8.0", @@ -38,5 +38,13 @@ }, "require": { "intervention/image": "^2.7" + }, + "scripts": { + "post-install-cmd": [ + "php artisan vendor:publish --tag=config --provider=gepopp\\Image\\ImageServiceProvider" + ], + "post-update-cmd": [ + "php artisan vendor:publish --tag=config --provider=gepopp\\Image\\ImageServiceProvider" + ] } } diff --git a/src/ImageServiceProvider.php b/src/ImageServiceProvider.php index 27b56d5..42d6a23 100644 --- a/src/ImageServiceProvider.php +++ b/src/ImageServiceProvider.php @@ -63,7 +63,7 @@ protected function bootForConsole(): void //publish the nova resource $this->publishes( [ __DIR__ . '/../Nova/Image.php' => app_path( 'Nova/Image.php' ), - ], 'nova.resource' ); + ], 'image.nova.resource' ); // Publishing the configuration file.