andriangungon
10/27/2018 - 5:13 AM

adding column to existing table migration

public function up()
    {
        Schema::table('lotto_categories', function (Blueprint $table) {
            $table->string('logo')->after('name');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('lotto_categories', function (Blueprint $table) {
            $table->dropColumn('logo');
        });
    }