<?php

namespace App\Http\Requests;

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

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

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