简体   繁体   English

无法在Laravel中通过身份验证在代理后面安装捆绑软件

[英]Cannot install bundles behind proxy with authentication in Laravel

I am not able to install any bundles because in my college there is a proxy with authentication. 我无法安装任何捆绑软件,因为在我的大学中有一个带有身份验证的代理。 I have been through all questions here on SO regarding this, but they are not helping me in any manner. 我在这里已经解决了所有与此相关的问题,但是它们并没有以任何方式帮助我。

I am using version 3.2.13 right now. 我正在使用3.2.13版本。 Even after initializing the env variables by export http_proxy=http://<username>:<password>@<proxy_ip>:<proxy_port> 即使在通过export http_proxy=http://<username>:<password>@<proxy_ip>:<proxy_port>初始化环境变量之后

I get the following error every time I try to install any bundle The bundle API is not responding. 每次尝试安装任何捆绑软件时The bundle API is not responding.都会出现以下错误捆绑The bundle API is not responding.

Has someone been able to come with any solutions? 有人能够提出任何解决方案吗?

I can't say much for proxies, but you should be able to install bundles by downloading their .zip file from github. 我不能对代理说太多,但是您应该能够通过从github下载.zip文件来安装捆绑包。 I'll walk you through swiftmailer bundle, for instance: 例如,我将向您介绍swiftmailer软件包:

  1. http://bundles.laravel.com/bundle/swiftmailer http://bundles.laravel.com/bundle/swiftmailer
  2. You should notice the install command is php artisan bundle:install swiftmailer . 您应该注意到install命令是php artisan bundle:install swiftmailer
  3. swiftmailer is the name of the folder you should create inside your bundles directory. swiftmailer是您应该在bundles目录中创建的文件夹的名称。
  4. There's a link to the bundle repository on Github at the sidebar. 在侧边栏的Github上有一个指向bundle仓库的链接。 Download it as .zip. 以.zip格式下载。
  5. Simply unzip its content inside that folder you just created. 只需将其内容解压缩到您刚创建的文件夹中即可。
  6. Register the bundle on bundles.php like usually. 像通常那样在bundles.php上注册捆绑bundles.php

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM