mercredi 9 novembre 2016

Automatically adding ServiceProviders laravel to config/app.php and autoload config

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:

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

Then I want this: Corium\MediaManager\MediaManagerServiceProvider::class, 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



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire