<?php

namespace App\Http\Requests;

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

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

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