Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Laravel package discovery feature #9

Open
imannms opened this issue Jan 22, 2020 · 0 comments
Open

Use Laravel package discovery feature #9

imannms opened this issue Jan 22, 2020 · 0 comments

Comments

@imannms
Copy link

imannms commented Jan 22, 2020

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"
        ]
    }
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant