Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
733 views
in Technique[技术] by (71.8m points)

php - Laravel, You need to specify a file path to store the seed

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.

You need to specify a file path to store the seed

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.');
            }
...

When I check my Laravel version, my Laravel updated to version 4.1.28.

I use wamp for Windows 7 64bit.

Is there a something that I missed? Thank you.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...