F
F
FMars2015-04-05 23:22:55
Laravel
FMars, 2015-04-05 23:22:55

Laravel. How to change the implementation of interfaces through the config?

My crooked implementation looks something like this:
in the service provider we write

$this->app->bind('FooBar', 'App\Services\'.config('app.someValue'));

so it will be correct, or there are special methods for similar tasks?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question