providers - How do service providers work in laravel?
淡淡烟草味
淡淡烟草味 2017-05-16 16:56:39
0
3
437

In laravel, when will the service provider in app/Providers be triggered in the program?
Can you provide a flow chart?

淡淡烟草味
淡淡烟草味

reply all(3)
Ty80

The service provider should be triggered the first time you access it, the first time you access it through the container

phpcn_u1582

Service provider is a startup program. It first registers the class into the ioc container, and then loads some other things (optional);
For details, please see Service Provider

某草草

I understand that it is triggered during injection, that is, in the constructor of the callee. I don’t know if it’s right or not.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template