ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、视频、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
### **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.