title: Laravel merging configs in Laravel packages
body: <p>I'm writing a package on laravel that it require some packages to install.</p>
  
  <p>I want to overwrite own package configuration file with the applications's published copy, and use the mergeConfigFrom method within my package service provider's register method. but it dosent work as i expect</p>
  
  <blockquote>
    <p>app/config/publishedConfig.php</p>
  </blockquote>
  
  <pre><code>return [
    'dashboard_url' =&gt; 'home',
    'logout_url' =&gt; 'logout',
    'login_url' =&gt; 'login'
  ];
  </code></pre>
  
  <p>And </p>
  
  <blockquote>
    <p>package/vendor/path/to/config/config.php</p>
  </blockquote>
  
  <pre><code>return [
     'dashboard_url' =&gt; 'dashboard/login',
     'logout_url' =&gt; 'dashboard/logout',
     'login_url' =&gt; 'mongodb-login'
  ]
  </code></pre>
  
  <p>Then in register method on my package service provider i use mergeConfigFrom like below to overwrite publishedConfig on run time: </p>
  
  <pre><code>public function register(){
  
      $this-&gt;mergeConfigFrom(
           __DIR__.'/config/adminlte-logo.php','publishedConfig'
      );
  }
  </code></pre>
  
  <p>After that I use <code>dd(config('publishedConfig'))</code> helper to get result of merge But the result not changed.</p>
  
  <p>expected result is : </p>
  
  <pre><code>   'dashboard_url' =&gt; 'dashboard/login',
     'logout_url' =&gt; 'dashboard/logout',
     'login_url' =&gt; 'mongodb-login'
  </code></pre>
  
  <p>I will appreciate anyone who solve my issue.</p>
  
  <p>Thanks in advance</p>