Laravel,您需要指定一个文件路径来存储种子 [英] Laravel, You need to specify a file path to store the seed
问题描述
我已将新的Laravel项目复制到新目录中.但是我的项目未包含在"vendor"目录中.所以我运行命令:
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:\ www \ laravel \ myproject \ vendor \ symfony \ security \ Symfony \ Component \ Security \ Core \ Util \ SecureRandom.php
The error was in file D:\www\laravel\myproject\vendor\symfony\security\Symfony\Component\Security\Core\Util\SecureRandom.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.
我将wamp用于Windows 7 64bit.
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):
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支持,而不是本地OpenSSL支持
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,您需要指定一个文件路径来存储种子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!