Illuminate\Encryption\MissingAppKeyException: No application encryption key has been specified. in file code example

Example 1: RuntimeException: No application encryption key has been specified.

php artisan key:generate

Example 2: Tests\Feature\BlogTest > user can delete post 162 Illuminate\Encryption\MissingAppKeyException No application encryption key has been specified.

Tests\Feature\BlogTest > user can delete post 162
   Illuminate\Encryption\MissingAppKeyException 

  No application encryption key has been specified.

php artisan key:generate --env=testing #

Tags:

Php Example