To solve this laravel error with and XAMPP instalation of PHP and apache, follow these steps

Open php.ini either from the xampp/php/php.ini or form the control panel >apache>config>php.ini

Uncomment the following line:

CHANGE FROM:

;extension=gd

 

CHANGE TO:

extension=gd

 

Save the changes, restart the apache server

Done