Skip to content
Discussion options

You must be logged in to vote

Ok i found the answer if anyone has the same issue

Just go in composer.json of your app and add that

"extra": {
        "laravel": {
            "dont-discover": ["backpack/devtools"] 
        }

By deactivating the auto discovery, Laravel is not going to infer the service provider of the package even though it is written in it's composer.json, so we can create a new service provider (using the artisan cli so it is registered as provider in bootstrap/providers.php) that extends the service provider of the package to rewrite some methods. Otherwise Laravel registers/boots the default service provider before our customized one so we can't rewrite methods

Cheers

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by dvdmnc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant