database/migrations/2018_02_14_002934_add_profession_id_to_users.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->dropForeign(['profession_id']);
            $table->dropColumn('profession_id');
            $table->string('profession', 50)->nullable()->after('id');
        });
    }
public function down ( ) { Schema :: table ( 'users' , function ( Blueprint $ table ) { $ table -> dropForeign ( [ 'profession_id' ] ) ; $ table -> dropColumn ( 'profession_id' ) ; $ table -> string ( 'profession' , 50 ) -> nullable ( ) -> after ( 'id' ) ; } ) ; }
Reverse the migrations.
Reverse the migrations .