laravel-ecommerce-example icon indicating copy to clipboard operation
laravel-ecommerce-example copied to clipboard

please help me i get this problem

Open mkarnadi opened this issue 6 years ago • 3 comments
trafficstars

ini

mkarnadi avatar May 06 '19 07:05 mkarnadi

I'm having the same problem on a fresh installation, any thoughts @drehimself ?

techguydev avatar Aug 07 '19 22:08 techguydev

Hi, I've solved the problem, I'm sharing the solution:

1- First of all start a fresh installation, if in the past you have ran a migration delete all the database and create a new one. 2- The problem here has nothing to do with algolia, if you have checked again and again the credentials and you know that these are the corrects keep calm, the problem is not there. 3- Go to 2016_11_30_135954_create_permission_table.php and change :

$table->increments('id'); 

for            

$table->bigIncrements('id');

4- Go to 2016_10_21_190000_create_roles_table.php and change:

$table->increments('id'); 

for            

$table->bigIncrements('id');

5- Now you can run php artisan ecommerce:install

It shoulded work nicely.

The problem is being created because in the 5.8 version of Laravel the structure is moving 'increments' to 'bigincrements' and it is creating a problem when you are making foreign references.

I hope it does help.

techguydev avatar Aug 09 '19 12:08 techguydev

I changed $table→increments('id'); to $table→bigIncrements('id'); in 2016_11_30_135954_create_permission_table.php $table→increments('id'); to $table→bigIncrements('id'); in 2016_11_30_135954_create_permission_table.php I removed Laravel\Scout\Searchable from App\Product

But I STILL HAVE THE SAME PROBLEM after running php artisan ecommerce:install This will delete ALL your current data and install the default dummy data. Are you sure? (yes/no) [no]:

yes Images successfully copied to storage folder. Dropped all tables successfully. Migration table created successfully. Migrating: 2014_10_12_000000_create_users_table Algolia credentials incorrect. Your products table is NOT seeded correctly. If you are not using Algolia, remove Laravel\Scout\Searchable from App\Product

Where can I find a good package for a fresh installation?

mauphung avatar Aug 12 '19 19:08 mauphung