| Conditions | 2 |
| Paths | 2 |
| Total Lines | 21 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace Taskforcedev\LaravelForum; |
||
| 30 | public function config() |
||
| 31 | { |
||
| 32 | // Publish Config |
||
| 33 | $this->publishes([ |
||
| 34 | __DIR__ . '/../config/laravel-forum.php' => config_path('laravel-forum.php'), |
||
| 35 | ], 'config'); |
||
| 36 | |||
| 37 | $this->mergeConfigFrom( |
||
| 38 | __DIR__ . '/../config/laravel-forum.php', |
||
| 39 | 'laravel-forum' |
||
| 40 | ); |
||
| 41 | |||
| 42 | // Merge default Config |
||
| 43 | $published = __DIR__.'/../../../../config/laravel-forum.php'; |
||
| 44 | if (file_exists($published)) { |
||
| 45 | $this->mergeConfigFrom( |
||
| 46 | $published, |
||
| 47 | 'laravel-forum' |
||
| 48 | ); |
||
| 49 | } |
||
| 50 | } |
||
| 51 | |||
| 76 |