Skip to content

Use Laravel package discovery feature #9

@imannms

Description

@imannms

Can you add package discovery feature?
It's available from Laravel 5.5.
https://laravel.com/docs/5.5/packages#package-discovery

Instead of requiring users to manually add your service provider to the config/app.php configuration file, you may define the provider in the extra section of your package's composer.json file. In addition to service providers, you may also list any facades you would like to be registered:

// composer.json

"extra": {
    "laravel": {
        "providers": [
            "LaravelCaptcha\\Providers\\LaravelCaptchaServiceProvider"
        ]
    }
},

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions