Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在梦工厂有一个类似http://host/api/v2/service的网址。我正在寻找从 url 禁用部分 api/v2 以获得最终 url 的方法,例如http://host/service。我可以这样做还是受梦工厂的限制?
是的,如果您查看 .env 文件,您可以自定义 URL。在 .env 文件中查找以下行:
DF_API_ROUTE_PREFIX=customapi
之后运行以下
php artisan cache:clear php artisan config:clear
谢谢