Skip to content
This repository has been archived by the owner on Feb 20, 2022. It is now read-only.

Commit

Permalink
Just use base_path() directly
Browse files Browse the repository at this point in the history
  • Loading branch information
ElfSundae committed Oct 13, 2017
1 parent ecf694b commit 0bfb233
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ServiceProvider.php
Expand Up @@ -16,8 +16,7 @@ public function register()
$this->mergeConfigFrom($from = __DIR__.'/../config/bearychat.php', 'bearychat');

if ($this->app->runningInConsole()) {
$to = (function_exists('config_path')) ? config_path('bearychat.php') : base_path('config/bearychat.php');
$this->publishes([$from => $to], 'bearychat');
$this->publishes([$from => base_path('config/bearychat.php')], 'bearychat');
}

$this->app->singleton('bearychat', function ($app) {
Expand Down

0 comments on commit 0bfb233

Please sign in to comment.