Generate your application encryption key using code example
Example 1: RuntimeException: No application encryption key has been specified.
php artisan key:generate
Example 2: encryption key has not encrypted laravel
php artisan key:generate
php artisan serve