<?php

namespace App\Http\Requests;

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

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

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