jsdecena / laracom

Laravel FREE E-Commerce Software
https://jsdecena.github.io/laracom
1.91k stars 861 forks source link

Call to undefined function Illuminate\Http\Testing\imagecreatetruecolor() #284

Closed FabioNevesRezende closed 2 years ago

FabioNevesRezende commented 2 years ago

Hello. I'm trying to run laracom locally but the migration is failing with this error message. Steps to reproduce:

git clone https://github.com/jsdecena/laracom
cd laracom/project
php7 /usr/bin/composer install
php7 artisan migrate --seed

Migrated: 2021_06_04_135827_alter_sale_price_type_in_product_attributes_table (0.26ms) Seeding: EmployeesTableSeeder Seeded: EmployeesTableSeeder (484.68ms) Seeding: CustomersTableSeeder Seeded: CustomersTableSeeder (77.13ms) Seeding: CategoriesTableSeeder

In FileFactory.php line 77:

Call to undefined function Illuminate\Http\Testing\imagecreatetruecolor()

My php version:

php7 --version PHP 7.4.29 (cli) (built: May 8 2022 22:36:28) ( NTS ) Copyright (c) The PHP Group Zend Engine v3.4.0, Copyright (c) Zend Technologies

FabioNevesRezende commented 2 years ago

Well, it was just missing the GD extension. I installed php-gd and activated in php.ini and it worked.