diff --git a/src/DatatableServiceProvider.php b/src/DatatableServiceProvider.php index f661e0f..661bebf 100644 --- a/src/DatatableServiceProvider.php +++ b/src/DatatableServiceProvider.php @@ -23,14 +23,18 @@ public function boot() */ public function register() { + $dataTableConfig=__DIR__.'/config/Table.php'; + + // merge config + $this->mergeConfigFrom($dataTableConfig, 'datatable'); + $this->publishes([ __DIR__.'/config/Table.php' => config_path('datatable.php'), - ]); + ],'datatable:config'); $this->app->singleton('datatable', function () { return new Datatable; }); - $this->app->singleton('table', function () { return new Table; });