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?
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.
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.
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.
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...
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With