problem to relate tables with foreign in laravel

0

I do not know why it says registry table, if registration is called my database ..

    
asked by Carlos 28.08.2018 в 02:14
source

1 answer

2

Well, the error is simple, when you create a foreign key it should not allow values negativos , and yours if you can, so the solution is simple change the following lines:

$table->integer("estado_civil");
$table->integer("estudios");

BY:

$table->integer("estado_civil")->unsigned();
$table->integer("estudios")->unsigned();

I hope it serves you.

    
answered by 28.08.2018 в 03:10