$ composer create-project laravel/laravel controle-series
Creating a "laravel/laravel" project at "./controle-series"
Info from https://repo.packagist.org: #StandWithUkraine
Installing laravel/laravel (v10.2.6)
- Installing laravel/laravel (v10.2.6): Extracting archive
Created project in C:\Users\Erick\Desktop\prog\lista-series\controle-series
> @php -r "file_exists('.env') || copy('.env.example', '.env');"
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- laravel/framework[v10.10.0, ..., v10.20.0] require league/flysystem ^3.8.0 -> satisfiable by league/flysystem[3.8.0, ..., 3.15.1].
- league/flysystem[3.3.0, ..., 3.14.0] require league/mime-type-detection ^1.0.0 -> satisfiable by league/mime-type-detection[1.0.0, ..., 1.13.0].
- league/flysystem[3.15.0, ..., 3.15.1] require league/flysystem-local ^3.0.0 -> satisfiable by league/flysystem-local[3.15.0].
- league/mime-type-detection[1.0.0, ..., 1.3.0] require php ^7.2 -> your php version (8.2.9) does not satisfy that requirement.
- league/mime-type-detection[1.4.0, ..., 1.13.0] require ext-fileinfo * -> it is missing from your system. Install or enable PHP's fileinfo extension.
- league/flysystem-local 3.15.0 require ext-fileinfo * -> it is missing from your system. Install or enable PHP's fileinfo extension.
- Root composer.json requires laravel/framework ^10.10 -> satisfiable by laravel/framework[v10.10.0, ..., v10.20.0].
To enable extensions, verify that they are enabled in your .ini files:
- C:\xampp\php\php.ini
You can also run `php --ini` in a terminal to see which files are used by PHP in CLI mode.
Alternatively, you can run Composer with `--ignore-platform-req=ext-fileinfo` to temporarily ignore these required extensions.
Primeiro apareceu esse erro ao tentar instalar o projeto laravel. Eu fui no php ini e ativei o 'fileinfo' porém não resolveu. Então apliquei o código abaixo.
$ composer --ignore-platform-req=ext-fileinfo create-project laravel/laravel controle-series
Creating a "laravel/laravel" project at "./controle-series"
Installing laravel/laravel (v10.2.6)
- Installing laravel/laravel (v10.2.6): Extracting archive
Created project in C:\Users\Erick\Desktop\prog\lista-series\controle-series
> @php -r "file_exists('.env') || copy('.env.example', '.env');"
Loading composer repositories with package information
Updating dependencies
Lock file operations: 110 installs, 0 updates, 0 removals
Após isso ele aparentemente tinha funcionado, porém quando eu fui tentar subir o servidor não funcionou
$ php artisan serve
Could not open input file: artisan
Eu vi que no fórum tinha um problema parecido e deram uma opção de usar o 'composer update' então eu também tentei.
$ composer update
Composer could not find a composer.json file in C:\Users\Erick\Desktop\prog\lista-series
To initialize a project, please create a composer.json file. See https://getcomposer.org/basic-usage
Esse foi o resultaodo. Alguém consegue ter uma ideia do que eu preciso fazer?