500 server error laravel 7

PHP
//in a terminal write
cp .env.example .env

php artisan key:generate

chmod 777 -R  storage
Source

Also in PHP: