string('user_type')->after('user_id')->nullable(); }); Schema::table('devices', function (Blueprint $table) { $table->string('user_type')->after('user_id')->nullable(); }); } public function down() { Schema::table('logins', function (Blueprint $table) { $table->dropColumn('user_type'); }); Schema::table('devices', function (Blueprint $table) { $table->dropColumn('user_type'); }); } }