Default config for publishing

This commit is contained in:
Jani Gyllenberg
2019-01-22 22:28:39 -05:00
parent 8dbdeb3e66
commit 5ec1146583
2 changed files with 15 additions and 1 deletions

5
config/data-sync.php Normal file
View File

@@ -0,0 +1,5 @@
<?php
return [
'path' => base_path('sync'),
];

View File

@@ -8,7 +8,9 @@ class DataSyncBaseServiceProvider extends ServiceProvider
{
public function boot()
{
if ($this->app->runningInConsole()) {
$this->registerPublishing();
}
}
public function register()
@@ -17,4 +19,11 @@ class DataSyncBaseServiceProvider extends ServiceProvider
Console\Commands\Sync::class,
]);
}
protected function registerPublishing()
{
$this->publishes([
__DIR__ . '/../config/data-sync.php' => config_path('data-sync.php'),
], 'data-sync-config');
}
}