Quick tip: Laravel Class hash does not exist

Every once in a while, when cloning a Laravel 5 repository, you may see the error message:

Class hash does not exist

This usually means that there is an error during the postAutoloadDump action by Composer, and especially during @php artisan package: discover. Unforntunately, the error message Class hash does not exist is misleading.

Check the .env file in your local project and make sure you set APP_ENV=local