文档介绍 Providers 目录的这句话是不是有问题?

Providers 目录
Providers 目录包含了应用的所有 服务提供器 。服务提供器通过在服务容器中绑定服务、注册事件、以及执行其他任务来为即将到来的请求做准备来启动应用。

在一个新的 Laravel 应用里,这个目录已经包含了一些服务提供器。你可以按照需要把自由添加自己的服务提供器到该目录。

最后加粗的一句话,分析揣摩没明白,应该是:你可以按照需要(“把”字删除)自由添加自己的服务提供器到该目录。
--应该是的!

not only a learner , but also a user .
ruodee
《L05 电商实战》
从零开发一个电商项目,功能包括电商后台、商品 & SKU 管理、购物车、订单管理、支付宝支付、微信支付、订单退款流程、优惠券等
《L03 构架 API 服务器》
你将学到如 RESTFul 设计风格、PostMan 的使用、OAuth 流程,JWT 概念及使用 和 API 开发相关的进阶知识。
最佳答案

The Providers directory contains all of the service providers for your application. Service providers bootstrap your application by binding services in the service container, registering events, or performing any other tasks to prepare your application for incoming requests.

In a fresh Laravel application, this directory will already contain several providers. You are free to add your own providers to this directory as needed.

5年前 评论
讨论数量: 1

The Providers directory contains all of the service providers for your application. Service providers bootstrap your application by binding services in the service container, registering events, or performing any other tasks to prepare your application for incoming requests.

In a fresh Laravel application, this directory will already contain several providers. You are free to add your own providers to this directory as needed.

5年前 评论

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!