Skip to content
Advertisement

Why class Imagick not found in laravel 7.0?

I had install Imagick:

JavaScript

Result of phpinfo: enter image description here

I try test in controller:

JavaScript

It occur error:

JavaScript

Why class Imagick not found in laravel 7.0?

Advertisement

Answer

Class 'AppHttpControllersImagick' not found means that Imagick is not in the namespace AppHttpControllers. If you want to use Imagick you need to prepend it with the “root” namespace . Change

JavaScript

to

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement