1
resposta

composer create-project --prefer-dist laravel/laravel control 5.8.

OCORRE ESSE ERRO: Your requirements could not be resolved to an installable set of packages.

E não consigo executar o PHP ARTISAN SERVER

c:>composer create-project --prefer-dist laravel/laravel control 5.8.* Creating a "laravel/laravel" project at "./control" Installing laravel/laravel (v5.8.35)

  • Installing laravel/laravel (v5.8.35): Downloading (100%) Created project in C:\control

    @php -r "file_exists('.env') || copy('.env.example', '.env');" Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages.

    Problem 1

    • laravel/framework v5.8.9 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.

    • laravel/framework v5.8.8 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.

    • laravel/framework v5.8.7 requires ext-mbstring * -> the

    • Installation request for laravel/framework 5.8.* -> satisfiable by laravel/framework[5.8.x-dev, v5.8.0, v5.8.1, v5.8.10, v5.8.11, v5.8.12, v5.8.13, v5.8.14, v5.8.15, v5.8.4, v5.8.5, v5.8.6, v5.8.7, v5.8.8, v5.8.9].

    To enable extensions, verify that they are enabled in your .ini files:

    • C:\xampp\php\php.ini You can also run php --ini inside terminal to see which files are used by PHP in CLI mode.

c:>cd control

c:\control>php artisan serve PHP Warning: require(C:\control/vendor/autoload.php): failed to open stream: No such file or directory in C:\control\artisan on line 18

Warning: require(C:\control/vendor/autoload.php): failed to open stream: No such file or directory in C:\control\artisan on line 18 PHP Fatal error: require(): Failed opening required 'C:\control/vendor/autoload.php' (include_path='.;C:\php\pear') in C:\control\artisan on line 18

Fatal error: require(): Failed opening required 'C:\control/vendor/autoload.php' (include_path='.;C:\php\pear') in C:\control\artisan on line 18

1 resposta

Fala, André.

A mensagem é bem clara. Falta habilitar a extensão mbstring.

É só seguir os mesmos passos que a gente executou no início do treinamento pra habilitar a extensão pdo_sqlite