I duplicated a working laravel app and renamed it to use for another app. I deleted the vendor folder and run the following commands again:
composer self-up
I solved this problem by adding this line in my index.php:
index.php
$app['config']['view.compiled'] = "storage/framework/cache";