8

I am learning to create projects with laravel, I am using PHP 8. When creating a new project

composer create-project laravel/laravel new-project

I got the problem

Problem 1 - laravel/framework[v8.12.0, ..., 8.x-dev] require league/flysystem ^1.1 -> satisfiable by league/flysystem[1.1.0, ..., 1.x-dev]. - league/flysystem[1.1.0, ..., 1.x-dev] require ext-fileinfo * -> it is missing from your system. Install or enable PHP's fileinfo extension. - Root composer.json requires laravel/framework ^8.12 -> satisfiable by laravel/framework[v8.12.0, ..., 8.x-dev]. 

How do I solve it?

4
  • You should check server requirements. laravel.com/docs/8.x/installation#server-requirements Commented Dec 7, 2020 at 14:51
  • What is your php version? Do you use apache? Commented Dec 7, 2020 at 14:51
  • If your PHP version >= 5.3.0, fileinfo should be enabled by default. Commented Dec 7, 2020 at 15:39
  • I did it like this: 01 composer create-project laravel/laravel app --ignore-platform-req=ext-fileinfo. 02: php artisan serve (terminal). 03: generate app key -> refresh now. Commented Dec 29, 2023 at 19:55

1 Answer 1

32

You need to uncomment this line in the php.ini file located in your PHP installation folder:

;extension=fileinfo 

Remove the semicolon and save the file.

extension=fileinfo 
Sign up to request clarification or add additional context in comments.

3 Comments

I was getting the same error and this worked for me. Thanks!
In My case, I had to uncomment ";extension=intl"
It depends on the error, the above error says require ext-fileinfo.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.