Laravel - No application encryption key has been specified Solved

10-Apr-2023

.

Admin

Hello Dev,

In this tutorial, you will discover No application encryption key has been specified in laravel . I’m going to show you about no application encryption key has been specified laravel error. This article will give you a simple example of No application encryption key has been specified. you can see No application encryption key has been specified in laravel .

In this article, you will find the solution of a common issue you might experience while working with Laravel application.

RuntimeException No application encryption key has been specified.

You will get this error when you start with the fresh larval application and copy the .env.example file to .env but do not set the value of APP_KEY variable then.

You can easily fix this issue by running following artisan command to generate new random key for your application

php artisan key:generate

Now you have generated laravel key in .env file.

It will help you ...

#Laravel

#Laravel 6