Answer the question
In order to leave comments, you need to log in
How to force a service provider to use a custom class internally (laravel 5)?
There is a service provider, it has several classes. I am not satisfied with the logic in one of them and would like to change it. Is there a way to make it use my custom class instead? So that, for example, my class with the same namespace as the original class is loaded before the original class in the vendor folder? Or maybe there are some ready-made methods for this?
Answer the question
In order to leave comments, you need to log in
Solved the issue this way:
Added to composer.json
"psr-4": {
"App\\": "app/",
"Zofe\\Rapyd\\DataForm\\Field\\": "app/Field"
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question