In laravel, when will the service provider in app/Providers be triggered in the program?
Can you provide a flow chart?
PHP中文网2017-05-16 16:58:39
The service provider should be triggered the first time you access it, the first time you access it through the container
phpcn_u15822017-05-16 16:58:39
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
某草草2017-05-16 16:58:39
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.