integer('ticket_owner_id')->unsigned()->nullable(); $table->foreign('ticket_owner_id')->references('id')->on('users'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('tickets', function (Blueprint $table) { $table->dropColumn(['ticket_owner_id']); }); } }