database/migrations/2020_07_15_162328_add_foreign_key_to_homepage.php
/**
     * Reverse the migrations.
     *
     * @return void
     */
Reverse the migrations.
@return void
Reverse the migrations . @return void
public function down()
    {
        Schema::table('homepages', function (Blueprint $table) {
            $table->dropForeign(['main_photo_id']);
            $table->dropForeign(['background_top_photo_id']);
            $table->dropForeign(['background_bottom_photo_id']);
        });
    }
public function down ( ) { Schema :: table ( 'homepages' , function ( Blueprint $ table ) { $ table -> dropForeign ( [ 'main_photo_id' ] ) ; $ table -> dropForeign ( [ 'background_top_photo_id' ] ) ; $ table -> dropForeign ( [ 'background_bottom_photo_id' ] ) ; } ) ; }
Reverse the migrations.
Reverse the migrations .
//