unsignedBigInteger('created_by')->nullable()->after('id'); }); } } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('contacts', function (Blueprint $table) { if (Schema::hasColumn('contacts', 'created_by')) { Schema::table('contacts', function (Blueprint $table) { $table->dropColumn('created_by'); }); } }); } }