id(); $table->string('reference_number'); $table->date('happened_on'); $table->string('buyer')->nullable(); $table->foreignId('branch_id')->constrained()->onDelete('cascade'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('sales'); } };