<?php

namespace App\Http\Requests;

use App\Pengakhiran;
use Illuminate\Foundation\Http\FormRequest;

class UpdatePengakhiranRequest extends FormRequest
{
    public function authorize()
    {
        return \Gate::allows('pengakhiran_edit');
    }

    public function rules()
    {
        return [
            'tanggal_bimbingan' => [
                'date_format:' . config('panel.date_format'),
                'nullable',
            ],
        ];
    }
}
