Update DbExportHandlerServiceProvider::boot() and ::register() methods to use the L5 config publishes() style. This allows the config to get published via php artisan vendor:publish.
Remove the $this->package('nwidart/db-exporter'); call from DbMigrationsServiceProvider::boot() method. It's enough to have it publishes() call in the export handler, so leave it empty.
Register \Str alias in DbExportHandlerServiceProvider::loadAlias() because some users won't have \Str alias registered in their config/app.php, and you're already going the extra mile, so might as well do it for \Str too.
Replace config strings using L4 style, e.g. Config::get('db-exporter::export_path.seeds') --> config('db-exporter.export_path.seeds')
Replace Config::get() with config() just to be more consistent with Laravel docs.
Main changes in this pull request:
DbExportHandlerServiceProvider::boot()
and::register()
methods to use the L5 config publishes() style. This allows the config to get published viaphp artisan vendor:publish
.$this->package('nwidart/db-exporter');
call fromDbMigrationsServiceProvider::boot()
method. It's enough to have it publishes() call in the export handler, so leave it empty.DbExportHandlerServiceProvider::loadAlias()
because some users won't have \Str alias registered in their config/app.php, and you're already going the extra mile, so might as well do it for \Str too.Config::get('db-exporter::export_path.seeds')
-->config('db-exporter.export_path.seeds')