<?php

namespace App\Http\Requests;

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

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

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