increments('id'); $table->string('name')->nullable(); $table->integer('company_id')->unsigned()->nullable(); $table->foreign('company_id')->references('id')->on('bap_companies'); $table->timestamps(); $table->softDeletes(); }); Schema::table('calls', function (Blueprint $table) { $table->integer('status_id')->unsigned()->nullable(); $table->foreign('status_id')->references('id')->on('calls_dict_status'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('calls', function (Blueprint $table) { $table->dropColumn('status_id'); }); } }