bigIncrements('id')->unique(); $table->string('name')->unique(); $table->string('weekday')->nullable(); $table->string('time')->nullable(); $table->integer('room_id'); $table->integer('user_id'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('subjects'); } }