Closed FabioNevesRezende closed 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()
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
Well, it was just missing the GD extension. I installed php-gd and activated in php.ini and it worked.
Hello. I'm trying to run laracom locally but the migration is failing with this error message. Steps to reproduce:
My php version: