create("key_words", function (Blueprint $table){ $table->id(); $table->string('keyWord'); $table->foreignId("fkGroup")->constrained("groups"); $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; */