Disable Laravel Package Autodiscovery

This feature added in Laravel 5.5 on paper seems quite nice, but once you get into situations like loading certain service providers in certain environments, this can become quite troublesome.

From my point of view, it is much prefered to register service providers explicitly, rather than using auto discovery magic. However, I think for small projects this could be okay.

To disable this functionality simply add the following to composer.json:

    "extra": {
        "laravel": {
            "dont-discover": [
                "*"
            ]
        }
    },