@@ -44,33 +44,33 @@ public function boot()
44
44
if ($ configFileName = $ this ->package ->configFileName ) {
45
45
$ this ->publishes ([
46
46
$ this ->package ->basePath ("/../config/ {$ configFileName }.php " ) => config_path ("{$ configFileName }.php " ),
47
- ], "{$ this ->package ->name }-config " );
47
+ ], "{$ this ->package ->shortName () }-config " );
48
48
}
49
49
50
50
if ($ this ->package ->hasViews ) {
51
51
$ this ->publishes ([
52
52
$ this ->package ->basePath ('/../resources/views ' ) => base_path ("resources/views/vendor/ {$ this ->package ->name }" ),
53
- ], "{$ this ->package ->name }-views " );
53
+ ], "{$ this ->package ->shortName () }-views " );
54
54
}
55
55
56
56
foreach ($ this ->package ->migrationFileNames as $ migrationFileName ) {
57
57
if (! $ this ->migrationFileExists ($ migrationFileName )) {
58
58
$ this ->publishes ([
59
59
$ this ->package ->basePath ("/../database/migrations/ {$ migrationFileName }.php.stub " ) => database_path ('migrations/ ' . now ()->format ('Y_m_d_His ' ) . '_ ' . Str::finish ($ migrationFileName , '.php ' )),
60
- ], "{$ this ->package ->name }-migrations " );
60
+ ], "{$ this ->package ->shortName () }-migrations " );
61
61
}
62
62
}
63
63
64
64
if ($ this ->package ->hasTranslations ) {
65
65
$ this ->publishes ([
66
66
$ this ->package ->basePath ('/../resources/lang ' ) => resource_path ("lang/vendor/ {$ this ->package ->shortName ()}" ),
67
- ], "{$ this ->package ->name }-translations " );
67
+ ], "{$ this ->package ->shortName () }-translations " );
68
68
}
69
69
70
70
if ($ this ->package ->hasAssets ) {
71
71
$ this ->publishes ([
72
72
$ this ->package ->basePath ('/../resources/dist ' ) => public_path ("vendor/ {$ this ->package ->shortName ()}" ),
73
- ], "{$ this ->package ->name }-assets " );
73
+ ], "{$ this ->package ->shortName () }-assets " );
74
74
}
75
75
76
76
$ this ->commands ($ this ->package ->commands );
0 commit comments