Laravel 5 Failed opening required bootstrap/../vendor/autoload.php(Laravel 5 无法打开所需的引导程序/../vendor/autoload.php)
问题描述
我最近通过 Composer 安装了 Laravel 5.我尝试使用 artisan 创建一个新控制器,但出现以下错误:
I have recently installed Laravel 5 via composer. I tried creating a new controller using artisan and I get the following error:
bootstrap/../vendor/autoload.php.无法打开流:没有这样的文件或目录.供应商"文件夹不存在.
bootstrap/../vendor/autoload.php. Failed to open stream: No such file or directory. The "vendor" folder does not exist.
我错过了什么吗?
推荐答案
原来我没有在我的 php.ini 中启用 openssl,所以当我用 Composer 创建我的新项目时,它是从源代码安装的.我改变了它并运行
Turns out I didn't enable openssl in my php.ini so when I created my new project with composer it was installed from source. I changed that and ran
composer update
现在已经创建了供应商文件夹.
now the vendor folder was created.
这篇关于Laravel 5 无法打开所需的引导程序/../vendor/autoload.php的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Laravel 5 无法打开所需的引导程序/../vendor/autoloa
基础教程推荐
- 如何替换eregi() 2022-01-01
- 如何在 Laravel 中使用 React Router? 2022-01-01
- YouTube API v3 点赞视频,但计数器不增加 2022-01-01
- Cron Jobs 调用带有变量的 PHP 脚本 2022-01-01
- 在PHP中根据W3C规范Unicode 2022-01-01
- PHP 类:全局变量作为类中的属性 2021-01-01
- 如何在 Laravel 5.3 注册中添加动态下拉列表列? 2021-01-01
- 有什么方法可以用编码 UTF-8 而不是 Unicode 返回 PHP`json_encode`? 2021-01-01
- 学说 dbal querybuilder 作为准备好的语句 2022-01-01
- PHP PDO MySQL 查询 LIKE ->多个关键词 2021-01-01
