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