助力软件开发企业降本增效 PHP / java源码系统,只需一次付费,代码终身使用! 广告
### **Manager & Factories** ### Laravel has several ``Manager`` classes that manage the creation of driver-based components. These include the cache, session, authentication, and queue components. The manager class is responsible for creating a particular driver implementation based on the application's configuration. For example, the ``CacheManager`` class can create APC, Memcached, Native, and various other implementations of cache drivers. Each of these managers includes an ``extend`` method which may be used to easily inject new driver resolution functionality into the manager. We'll cover each of these managers below, with examples of how to inject custom driver support into each of them. > Learn About Your Managers > > Take a moment to explore the various ``Manager`` classes that ship with Laravel, such as the ``CacheManager`` and ``SessionManager``. Reading through these classes will give you a more thorough understanding of how Laravel works under the hood. All ``manager`` classes extend the ``Illuminate\Support\Manager`` base class, which provides some helpful, common functionality for each manager.