database/migrations/2020_08_11_003657_create_table_schedules.php
/**
     * Reverse the migrations.
     *
     * @return void
     */
Reverse the migrations.
@return void
Reverse the migrations . @return void
public function down()
    {
        Schema::table('schedules', function (Blueprint $table) {
            $table->dropForeign(['barbershop_id']);
            $table->dropForeign(['barber_id']);
            $table->dropForeign(['user_id']);
            $table->dropForeign(['schedule_status_id']);
        });
        Schema::dropIfExists('schedules');
    }
public function down ( ) { Schema :: table ( 'schedules' , function ( Blueprint $ table ) { $ table -> dropForeign ( [ 'barbershop_id' ] ) ; $ table -> dropForeign ( [ 'barber_id' ] ) ; $ table -> dropForeign ( [ 'user_id' ] ) ; $ table -> dropForeign ( [ 'schedule_status_id' ] ) ; } ) ; Schema :: dropIfExists ( 'schedules' ) ; }
Reverse the migrations.
Reverse the migrations .