mirror of
https://github.com/nullthoughts/laravel-data-sync.git
synced 2026-03-11 13:03:22 +00:00
Default config for publishing
This commit is contained in:
5
config/data-sync.php
Normal file
5
config/data-sync.php
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
return [
|
||||||
|
'path' => base_path('sync'),
|
||||||
|
];
|
||||||
@@ -8,7 +8,9 @@ class DataSyncBaseServiceProvider extends ServiceProvider
|
|||||||
{
|
{
|
||||||
public function boot()
|
public function boot()
|
||||||
{
|
{
|
||||||
|
if ($this->app->runningInConsole()) {
|
||||||
|
$this->registerPublishing();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function register()
|
public function register()
|
||||||
@@ -17,4 +19,11 @@ class DataSyncBaseServiceProvider extends ServiceProvider
|
|||||||
Console\Commands\Sync::class,
|
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