2 years ago

MIgration issue

Posted 2 years ago by juliandavidi

Hi there,

I try to create a table that is related to itself, but I have this error: Cannot add foreign key constraint, how exactly I have to created this relationship?.

 * Run the migrations.
 * @return void
public function up()
    Schema::create('materiales', function (Blueprint $table) {

    Schema::table('materiales', function (Blueprint $table) {

Thank you;

Please sign in or create an account to participate in this conversation.