NIUCLOUD是一款SaaS管理后台框架多应用插件+云编译。上千名开发者、服务商正在积极拥抱开发者生态。欢迎开发者们免费入驻。一起助力发展! 广告
### **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.