Missing file in Laravel

I am setting up a Laravel project using the composer team. When I open the browser to access the page, I get a fatal error, for example:

Fatal error: require(): Failed opening required 'C:\xampp\htdocs\Learning Laravel\bootstrap/../vendor/autoload.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\Learning Laravel\bootstrap\autoload.php on line 17.

The file is really missing.

So my steps are:

  • I downloaded the composer
  • Command in CMD:

    composer create-project laravel / laravel laravel5-learning After that I got an error about the missing file.

  • Then I put the proposed command in the CMD:

    composer setting

But now I get a new error:

RuntimeException in EncryptionServiceProvider.php line 29:
No supported encrypter found. The cipher and / or key length are invalid.
+4
source share
1 answer

According to @Ohgodwhy, your first error was caused by the fact that something is missing in the vendor code.

So using:

composer install

It will be fixed. After that, as @TimLewis says, you can use:

php artisan key:generate

.env, .

+3

Source: https://habr.com/ru/post/1616429/


All Articles