Laravel, You need to specify a file path to store the seed(Laravel,你需要指定一个文件路径来存储种子)
问题描述
我已经在我的新目录中复制了我的新 Laravel 项目.但我的项目不包含在供应商"目录中.所以我运行命令:
I have copy my new Laravel project in my new directory. But my project is not included with "vendor" directory. So I run command:
composer install
并且一切运行顺利供应商目录创建并填充了包.
And everything run smoothly vendor direcotory created and filled in with packages.
然后我刷新我的网页,突然我得到一个错误.但通常我喜欢这样没有错误.
Then I refresh my web page, suddenly I get an error. But usually I do like this without error.
您需要指定一个文件路径来存储种子
错误在文件 D:wwwlaravelmyprojectvendorsymfonysecuritySymfonyComponentSecurityCoreUtilSecureRandom.php 中
The error was in file D:wwwlaravelmyprojectvendorsymfonysecuritySymfonyComponentSecurityCoreUtilSecureRandom.php
...
$this->logger->info('OpenSSL did not produce a secure random number.');
}
}
// initialize seed
if (null === $this->seed) {
if (null === $this->seedFile) {
throw new RuntimeException('You need to specify a file path to store the seed.');
}
...
当我检查我的 Laravel 版本时,我的 Laravel 更新到了 4.1.28 版本.
When I check my Laravel version, my Laravel updated to version 4.1.28.
我在 Windows 7 64bit 上使用 wamp.
I use wamp for Windows 7 64bit.
有什么我错过的吗?谢谢.
Is there a something that I missed? Thank you.
推荐答案
@FathurRohman 的回答(移出问题):
The answer by @FathurRohman (moved out of the question):
我正在寻找另一个解决方案,我在这里找到了它 http://laravel.io/forum/04-18-2014-you-need-to-specify-a-file-path-to-store-the-seed
I'am searching another solution and I found it here http://laravel.io/forum/04-18-2014-you-need-to-specify-a-file-path-to-store-the-seed
这导致我没有在我的 php.ini 中启用我的 php_openssl.当我启用此扩展时,请确保启用 openSSL support,而不是 Native OpenSSL support
This caused i am not enable my php_openssl in my php.ini. When I enable this extension, make sure that openSSL support is enable, not Native OpenSSL support
这篇关于Laravel,你需要指定一个文件路径来存储种子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Laravel,你需要指定一个文件路径来存储种子
基础教程推荐
- 如何在数学上评估像“2-1"这样的字符串?产生“1"? 2022-01-01
- Web 服务器如何处理请求? 2021-01-01
- 将变量从树枝传递给 js 2022-01-01
- 主题化 Drupal 7 的 Ubercart “/cart"页 2021-01-01
- PHPUnit 的 Selenium 2 文档到底在哪里? 2022-01-01
- php 7.4 在写入变量中的 Twig 问题 2022-01-01
- php中的foreach复选框POST 2021-01-01
- 使用 scandir() 在目录中查找文件夹 (PHP) 2022-01-01
- Yii2 - 在运行时设置邮件传输参数 2022-01-01
- php中的PDF导出 2022-01-01
