create("groups", function (Blueprint $table){ $table->id(); $table->string("groupName"); $table->integer("groupAmount"); $table->foreignId("fkGameJam")->constrained("game_jams"); $table->integer("votes")->nullable(); $table->foreignId("fkPassword")->constrained("password"); $table->foreignId("fkGameData")->nullable()->constrained("game_data"); $table->timestamps(); }); /* Syntex to create table in database $table->string("texts"); $table => valuable; string => datatype; ("texts") => name for the row in the database; nullable => is allowed to not have a value in the database; foreignId => foreignId key row name in the database; constrained => targeted table name; */