K
K
Konstantin2018-12-12 22:54:11
Laravel
Konstantin, 2018-12-12 22:54:11

Can several services (classes) be registered in one service provider?

Can several services (classes) be registered in one service provider in a method:
public function register() {}
Or the concept of one service provider = one service (custom class) inside the provider?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
JhaoDa, 2018-12-12
@Junart1

Maybe. What prevented you from trying and finding out? What prevented you from looking into the documentation and seeing thing s there , i.e. plural?

Within the register method, you should only bind things into the service container

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question