<?php

namespace App\Http\Requests;

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

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

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