create("key_words", function (Blueprint $table) { $table->id(); $table->string('key_word'); $table->foreignId("registration_id")->constrained("registrations"); $table->timestamps(); }); /* Syntex to create table in database $table->string("texts"); $table => valuable; string => datatype; ("texts") => name for the row in the database foreignId => foreignId key row name in the database; constrained => targeted table name; */