Determine if APP_KEY is defined in the environment.
If so, we're done. But if missing, the setup script should create:
.env
APP_KEY=SomeRandomString
Then, it should run php artisan key:generate to replace it by a custom key.
Some background information is given at rDNOTIFbacf9390fa39 audit.