Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Problem creating a new project with Laravel [duplicate]

Tags:

php

laravel

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?

like image 931
JV PF Avatar asked Dec 07 '20 14:12

JV PF


People also ask

How to create the first Laravel project?

In this topic, we are going to create the first laravel project. To create the Laravel project, we will be using Git and Composer. Open the Git Bash window. Enter the ls command to know the current location. Currently, we are in the root directory. Now we create a Laravel project in Xampp folder.

How to create Laravel project in Git and composer?

To create the Laravel project, we will be using Git and Composer. Open the Git Bash window. Enter the ls command to know the current location. Currently, we are in the root directory. Now we create a Laravel project in Xampp folder. First we need to move to the xampp folder where we create a new laravel project.

How to create a Laravel project in XAMPP?

Now we create a Laravel project in Xampp folder. First we need to move to the xampp folder where we create a new laravel project. In the above screen, cd c: command is used to move to the c drive and then we use the command cd xampp/htdocs/ to move to the xampp folder.

What version of Laravel is required to create a new application?

Creating a new application with laravel command results in a composer error, doctrine/inflector has a new release version 1.2 wich requires minimum PHP 7.0 Crafting application...


1 Answers

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
like image 104
Ali Ali Avatar answered Nov 03 '22 09:11

Ali Ali