Skip to content

Commit 167888e

Browse files
authored
Merge pull request #15 from TappNetwork/fix_views_directory
Fix publish view directory
2 parents 2db1beb + 906b7ed commit 167888e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/PackageServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function boot()
4949

5050
if ($this->package->hasViews) {
5151
$this->publishes([
52-
$this->package->basePath('/../resources/views') => base_path("resources/views/vendor/{$this->package->name}"),
52+
$this->package->basePath('/../resources/views') => base_path("resources/views/vendor/{$this->package->shortName()}"),
5353
], "{$this->package->name}-views");
5454
}
5555

tests/PackageServiceProviderTests/PackageViewsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ public function it_can_publish_the_views()
2828
->artisan('vendor:publish --tag=laravel-package-tools-views')
2929
->assertExitCode(0);
3030

31-
$this->assertFileExists(base_path('resources/views/vendor/laravel-package-tools/test.blade.php'));
31+
$this->assertFileExists(base_path('resources/views/vendor/package-tools/test.blade.php'));
3232
}
3333
}

0 commit comments

Comments
 (0)