沃梦达 / 编程问答 / php问题 / 正文

Laravel,你需要指定一个文件路径来存储种子

Laravel, You need to specify a file path to store the seed(Laravel,你需要指定一个文件路径来存储种子)

本文介绍了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,你需要指定一个文件路径来存储种子

基础教程推荐