Automatically adding ServiceProviders laravel to config/app.php and autoload config
<p>So I am using laravel 5.3 and I have just created my first bare package for a CMS that I have created.
It works fine however I don't want to be adding the to composer.json autoload manually i want this to be done automatically from a drag and drop or a select option in the admin area eg:</p>

<pre><code>"autoload": {
            "classmap": [
                "database"
            ],
            "psr-4": {
                "App\\": "app/",
                "Corium\\MediaManager\\" : "packages/corium/mediaManager/src"
            }
        },
</code></pre>

<p>Then I want this: <code>Corium\MediaManager\MediaManagerServiceProvider::class,</code> added to the config/app.php provider array with out the end user needing to enter the backend code. What is the best way of doing this because i cant work out how to get this to work.
Thank you</p>