mirror of
https://github.com/nullthoughts/laravel-data-sync.git
synced 2026-02-10 17:51:39 +00:00
Default config for publishing
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user