PHP Fileinfo extension must be installed/enabled to use Intervention Image in laravel 5

PHP Fileinfo extension must be installed/enabled to use Intervention Image in laravel 5

In this article I will show you: how to fix error when upload file in laravel 5:
Intervention \ Image \ Exception \ MissingDependencyException
PHP Fileinfo extension must be installed/enabled to use Intervention Image.

Case 1: Live site

Login to your cpanel: Click Select PHP Version select-php-version
Choose PHP Selector | extensions php-selector

Insert the code bellow to index.php to check PHP Fileinfo extension installed/enabled.

phpinfo();

fileinfo-enable
If you see this you have installed PHP Fileinfo extensio php successfully otherwise you can create support tickets for hosting.

Case 2: Localhost

in php.ini edit ;extension=fileinfo to extension=fileinfo

Comments

comments

Share