| Current Path : /var/www/html/reddsis/app/Http/Requests/Backend/ |
| Current File : /var/www/html/reddsis/app/Http/Requests/Backend/ContentPublicHolidayRequest.php |
<?php
namespace App\Http\Requests\Backend;
use Illuminate\Foundation\Http\FormRequest;
class ContentPublicHolidayRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*/
public function authorize(): bool
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
*/
public function rules(): array
{
return [
'public_holiday_title' => 'required|string|max:255',
'public_holiday_start_date' => 'required|date',
'public_holiday_end_date' => 'nullable|date|after_or_equal:public_holiday_start_date',
'public_holiday_status' => 'nullable|string|max:255',
];
}
}