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
Thanks for read. I hope it help you. For more you can follow us on facebook