No encryption key has been specified in laravel Solved

Share Me
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

In this article I will show you how to solve no application encryption key has been specified in laravel. When we are install a new laravel application then display to a this error No application encryption key has been specified. So you can solve print by the artisan command in composer. I will show you how to solve No encryption key has been specified in laravel.

Now in this article, we will find the solution of a common issue we might experience while we working with Laravel application.

RuntimeException No application encryption key has been specified.

So we will get this error when we start with a new and the fresh larval application and we copy the .env.example file to .env but we do not set the value of APP_KEY variable then we face this problem.

So we need to solve this and also can easily fix this issue by just running following artisan command to generate new random key for our laravel application

Now we need to generated laravel key in our .env file.

php artisan key:generate

Read Also : Ajax CRUD with Laravel 8 Tutorial with Example for Beginners

Thanks for read. I hope it help you. For more you can follow us on facebook

About Shahriar Sagor

My name is Shahriar sagor. I'm a developer. I live in Bangladesh and I love to write tutorials and tips that will help to other Developer's. I am a big fan of PHP, Javascript, JQuery, Laravel, Codeigniter, VueJS, AngularJS and Bootstrap from the early stage.

View all posts by Shahriar Sagor →