How To Fix No application encryption key has been specified error In Laravel

In this tutorial you will learn about the How To Fix No application encryption key has been specified error In Laravel and its application with practical example.

Fix No application encryption key has been specified error In Laravel

Sometime in laravel, when you created a fresh laravel project and trying to start development server you may encounter following error –

how to fix laravel RuntimeException No application encryption key has been specified

Fix:-

The easiest way to fix this error you need to set a key option in your config/app.php configuration file. You should use the following commands to generate this key and get the error fixed –

I hope this will fix the above error for you.

In this tutorial we have learn about the How To Fix No application encryption key has been specified error In Laravel and its application with practical example. I hope you will like this tutorial.