%PDF- %PDF-
Direktori : /var/www/html/hrsys/api/app/Http/Requests/Api/v1/WorkingDays/ |
Current File : /var/www/html/hrsys/api/app/Http/Requests/Api/v1/WorkingDays/CreateWorkingDayRequest.php |
<?php namespace App\Http\Requests\Api\v1\WorkingDays; use App\Http\Requests\BaseRequest; class CreateWorkingDayRequest extends BaseRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { return [ 'day_id' => 'required|integer|exists:days,id', 'starts_at' => 'required|string', 'ends_at' => 'required|string', 'has_shifts' => 'required|boolean', 'valid_from' => 'required|date', 'valid_to' => 'nullable|date|after:valid_from', ]; } }