File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,11 @@ protected function registerPublishing()
115115 {
116116 if ($ this ->app ->runningInConsole ()) {
117117 $ this ->publishes ([__DIR__ .'/../config ' => config_path ()], 'laravel-admin-config ' );
118- $ this ->publishes ([__DIR__ .'/../resources/lang ' => resource_path ('lang ' )], 'laravel-admin-lang ' );
118+ if (version_compare ($ this ->app ->version (), '9.0.0 ' , '>= ' )) {
119+ $ this ->publishes ([__DIR__ .'/../resources/lang ' => base_path ('lang ' )], 'laravel-admin-lang ' );
120+ } else {
121+ $ this ->publishes ([__DIR__ .'/../resources/lang ' => resource_path ('lang ' )], 'laravel-admin-lang ' );
122+ }
119123 $ this ->publishes ([__DIR__ .'/../database/migrations ' => database_path ('migrations ' )], 'laravel-admin-migrations ' );
120124 $ this ->publishes ([__DIR__ .'/../resources/assets ' => public_path ('vendor/laravel-admin ' )], 'laravel-admin-assets ' );
121125 }
You can’t perform that action at this time.
0 commit comments