Publishing config and migrations from included package in Laravel
<p>I'm using Laravel to build a package which will include some Admin functionality and will include some other packages.</p>

<p>I have included a package which has migrations and a config file, But how do I copy those to the correct folder in Laravel. The package has it's own ServiceProvider but How do I call that from my package?</p>

<p>I'm using the following to register the package in my package.</p>

<pre><code>class CldServiceProvider extends ServiceProvider {

    public function register()
    {
       $this-&gt;app-&gt;register(MediaLibraryServiceProvider::class);
    }
}
</code></pre>

<p>I've tried</p>

<pre><code>php artisan vendor:publish 
</code></pre>

<p>But it says there's nothing to publish. Because it's only looking at the packages for this Laravel installation, and not the nested packages.</p>