id(); $table->string("name"); $table->string("accountable"); $table->longText("description"); $table->dateTime("date"); $table->foreignId('resource_id')->nullable()->constrained('resources', 'id'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('events'); } }