Answer the question
In order to leave comments, you need to log in
How is it possible to access the container service class in Laravel without registering this class in config/app.php (I saw it in the andriymiz/iiko-biz-api library)?
I started diving into service containers and service providers. Now I am working with api iiko (restaurant business automation system) using the andriymiz/iiko-biz-api library . I access the main class using the app('iiko')
. But here's the thing: there is a service provider in the library src/Iiko/Biz/IikoBizServiceProvider
, but it's not registered with config/app.php
. That being said, I found it in the hash file bootstrap/cache/services.php
. How is this possible? I tried to replicate with another class, but laravel didn't detect it until I put it in config/app.php
. I understand that I'm missing something, I re-read the documentation and other articles on the topic of service containers and service providers several times, but I still don't understand what's going on. Explain, please!
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question