database/migrations/2021_08_06_065140_update_users_table.php
/**
     * Reverse the migrations.
     *
     * @return void
     */
Reverse the migrations.
@return void
Reverse the migrations . @return void
public function down()
    {
        Schema::table('users', function (Blueprint $table) {
            $table->dropColumn('gender');
            $table->dropUnique('staff_code');
            $table->string('staff_code')->nullable(false)->change();
            $table->string('username')->nullable(false)->change();
            $table->string('password')->nullable(false)->change();
        });
    }
public function down ( ) { Schema :: table ( 'users' , function ( Blueprint $ table ) { $ table -> dropColumn ( 'gender' ) ; $ table -> dropUnique ( 'staff_code' ) ; $ table -> string ( 'staff_code' ) -> nullable ( false ) -> change ( ) ; $ table -> string ( 'username' ) -> nullable ( false ) -> change ( ) ; $ table -> string ( 'password' ) -> nullable ( false ) -> change ( ) ; } ) ; }
Reverse the migrations.
Reverse the migrations .