Skip to content

Commit ee87879

Browse files
authored
Update ActivityLogProvider.php
add config
1 parent dcfd70b commit ee87879

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

src/Providers/ActivityLogProvider.php

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@ class ActivityLogProvider extends ServiceProvider
1212
*
1313
* @return void
1414
*/
15+
16+
// Register the config in our package so we can use
17+
public function register()
18+
{
19+
$this->mergeConfigFrom(__DIR__ . '/../config/config.php', 'lcwActivityLogConfig');
20+
}
21+
22+
1523
public function boot()
1624
{
1725
$this->loadRoutesFrom(__DIR__ . '/../routes/web.php');
@@ -26,6 +34,10 @@ public function boot()
2634
__DIR__ . '/../database/migrations/create_activity_log_master.php.stub' => database_path('migrations/' . date('Y_m_d_His', time()) . '_create_activity_log_master.php'),
2735
], 'migrations');
2836
}
37+
//Export config
38+
$this->publishes([
39+
__DIR__ . '/../config/config.php' => config_path('lcw_activity_log_config.php'),
40+
], 'config');
2941
}
3042
}
31-
}
43+
}

0 commit comments

Comments
 (0)