Skip to content

Commit 13afff3

Browse files
committed
auto publish service provider and alter the nova resource tag
1 parent e13f67a commit 13afff3

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

composer.json

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
"license": "MIT",
55
"authors": [
66
{
7-
"name": "Author Name",
8-
"email": "[email protected]",
9-
"homepage": "http://author.com"
7+
"name": "Gerhard Popp",
8+
"email": "[email protected]",
9+
"homepage": "https://poppgerhard.at"
1010
}
1111
],
1212
"php": "8.0",
@@ -38,5 +38,13 @@
3838
},
3939
"require": {
4040
"intervention/image": "^2.7"
41+
},
42+
"scripts": {
43+
"post-install-cmd": [
44+
"php artisan vendor:publish --tag=config --provider=gepopp\\Image\\ImageServiceProvider"
45+
],
46+
"post-update-cmd": [
47+
"php artisan vendor:publish --tag=config --provider=gepopp\\Image\\ImageServiceProvider"
48+
]
4149
}
4250
}

src/ImageServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ protected function bootForConsole(): void
6363
//publish the nova resource
6464
$this->publishes( [
6565
__DIR__ . '/../Nova/Image.php' => app_path( 'Nova/Image.php' ),
66-
], 'nova.resource' );
66+
], 'image.nova.resource' );
6767

6868

6969
// Publishing the configuration file.

0 commit comments

Comments
 (0)