How to Fix PHP Extension Fileinfo is Missing in Laragon

laravel 8

When I tried to install a new fresh Laravel 5.7.12 this morning  using CMDer in my Laragon, I encountered this error message:

Problem 1

  • Installation request for league/flysystem 1.0.48 -> satisfiable by league/flysystem[1.0.48].
  • league/flysystem 1.0.48 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.

Problem 2

  • league/flysystem 1.0.48 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
  • laravel/framework v5.7.12 requires league/flysystem ^1.0.8 -> satisfiable by league/flysystem[1.0.48].
  • Installation request for laravel/framework v5.7.12 -> satisfiable by laravel/framework[v5.7.12].

So how to fix this PHP Extension Fileinfo is missing

I’m not sure it’s just me or Laragon default setting. You can easily turn on the PHP extension Fileinfo as follows:

how to enable php extensions fileinfo

That’s all.

Should you need a laravel training session, do not hesitate to contact me. I can do online and offline tutoring.