database/migrations/2018_07_24_120501_relations_products_to_subcategories_table.php
/**
     * Reverse the migrations.
     *
     * @return void
     */
Reverse the migrations.
@return void
Reverse the migrations . @return void
public function down()
    {
        Schema::table('products', function (Blueprint $table) {
            $table->dropForeign('subcategory_id');
        });
    }
public function down ( ) { Schema :: table ( 'products' , function ( Blueprint $ table ) { $ table -> dropForeign ( 'subcategory_id' ) ; } ) ; }
Reverse the migrations.
Reverse the migrations .