bigInteger('expense_id')->unsigned()->nullable(); $table->foreign('expense_id') ->references('id') ->on('expenses') ->onDelete('cascade'); $table->bigInteger('payment_id')->unsigned()->nullable(); $table->foreign('payment_id') ->references('id') ->on('payments') ->onDelete('cascade'); $table->bigInteger('chart_of_account_id')->unsigned(); $table->foreign('chart_of_account_id') ->references('id') ->on('chart_of_accounts') ->onDelete('cascade'); $table->string('amount'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('tax_deducated'); } }