<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddLeavesNotificationSetting extends Migration
{

    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        // When new expense added by admin
        \App\Models\EmailNotificationSetting::create([
            'setting_name' => 'New Leave Application',
            'send_email' => 'yes'
        ]);
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        \App\Models\EmailNotificationSetting::where('setting_name', 'New Leave Application')->delete();
    }

}
