|
@@ -169,7 +169,11 @@ class AdminServiceProvider extends ServiceProvider
|
|
{
|
|
{
|
|
if ($this->app->runningInConsole()) {
|
|
if ($this->app->runningInConsole()) {
|
|
$this->publishes([__DIR__.'/../config' => config_path()], 'dcat-admin-config');
|
|
$this->publishes([__DIR__.'/../config' => config_path()], 'dcat-admin-config');
|
|
- $this->publishes([__DIR__.'/../resources/lang' => resource_path('lang')], 'dcat-admin-lang');
|
|
|
|
|
|
+ if ( substr($this->app->version(), 0, 1) >= 9 ) {
|
|
|
|
+ $this->publishes([__DIR__.'/../resources/lang' => base_path('lang')], 'dcat-admin-lang');
|
|
|
|
+ } else {
|
|
|
|
+ $this->publishes([__DIR__.'/../resources/lang' => resource_path('lang')], 'dcat-admin-lang');
|
|
|
|
+ }
|
|
$this->publishes([__DIR__.'/../database/migrations' => database_path('migrations')], 'dcat-admin-migrations');
|
|
$this->publishes([__DIR__.'/../database/migrations' => database_path('migrations')], 'dcat-admin-migrations');
|
|
$this->publishes([__DIR__.'/../resources/dist' => public_path(Admin::asset()->getRealPath('@admin'))], 'dcat-admin-assets');
|
|
$this->publishes([__DIR__.'/../resources/dist' => public_path(Admin::asset()->getRealPath('@admin'))], 'dcat-admin-assets');
|
|
}
|
|
}
|