Closed stanyjude closed 5 years ago
You don't seem to have your application key. Quit the application if you are running it with artisan serve
. Next, run: php artisan key:generate
to generate your application key. Run the application again
By the way, accessing a laravel project like this: http://localhost/eflinventory-v2 OR http://localhost/eflinventory-v2/public doesn't work fine, except you can write a customer script to handle requests using that format. I'd suggest running the php artisan serve
command from your Terminal or Command Prompt.
Hello Im having the same prob and when i run php artisan key:generate Im having this error: [ErrorException] file_get_contents(C:\wamp64\www\EFL\eflinventory-v2/.env): failed to open stream: No such file or directory Can you please Help
@Elyaho you need to create a .env file. You can get the content of the env file from the existing .env.example. If you're using a UNIX system, you can easily run: cp .env.example .env
and it will copy the .env.example
file into a new .env
file. After this, you can now run php artisan key:generate
.
Let me know how this goes. In the other case, what other error did you encounter?
I have followed the steps mentioned in the Installation document.
I ran the .sql script directly and renamed necessary files. When I visit the browser and type http://localhost/eflinventory-v2 OR http://localhost/eflinventory-v2/public, nothing shows up. Its a 500 Internal Server Error. The DB works just fine.
I am new to Laravel. I later from terminal ran php artisan serve. And again, using the same URLs in the browser give me 500 Internal Server Error. Could you please help?
This is my .env file
DB_CONNECTION=mysql DB_HOST=localhost DB_PORT=3306 DB_DATABASE=emifoodlovers DB_USERNAME=root DB_PASSWORD=adminpass
BROADCAST_DRIVER=log CACHE_DRIVER=file SESSION_DRIVER=file QUEUE_DRIVER=sync
REDIS_HOST=127.0.0.1 REDIS_PASSWORD=null REDIS_PORT=6379
MAIL_DRIVER=smtp MAIL_HOST=smtp.mailtrap.io MAIL_PORT=2525 MAIL_USERNAME=null MAIL_PASSWORD=null MAIL_ENCRYPTION=null
PUSHER_APP_ID= PUSHER_APP_KEY= PUSHER_APP_SECRET=
FILESYSTEM_CLOUD=google GOOGLE_DRIVE_CLIENT_ID= GOOGLE_DRIVE_CLIENT_SECRET= GOOGLE_DRIVE_REFRESH_TOKEN= <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
This is my app.php file
return [
];