%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/hr/api/app/Http/Requests/Api/v1/Configurations/
Upload File :
Create Path :
Current File : /var/www/html/hr/api/app/Http/Requests/Api/v1/Configurations/CreateConfigurationRequest.php

<?php

namespace App\Http\Requests\Api\v1\Configurations;

use App\Http\Requests\BaseRequest;

class CreateConfigurationRequest 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 [
            'should_get_holidays_from_working_day_overtime'     => 'required|boolean',
            'holidays_percentage_from_working_day_overtime'     => 'nullable|required_if:should_get_holidays_from_working_day_overtime,true|integer',
            'should_get_holidays_from_non_working_day_overtime' => 'required|boolean',
            'holidays_percentage_from_non_working_day_overtime' => 'nullable|required_if:should_get_holidays_from_non_working_day_overtime,true|integer',
            'should_postpone_holidays'                          => 'required|boolean',
            'holidays_validity_in_months'                       => 'required|integer',
            'expected_daily_working_hours'                      => 'required|integer',
            'overtime_percentage_on_working_day'                => 'required|integer',
            'overtime_percentage_on_non_working_day'            => 'required|integer',
            'out_sick_percentage'                               => 'required|integer',
            'valid_from'                                        => 'required|date',
            'valid_to'                                          => 'nullable|date',
            'annual_leave_quantity'                             => 'required|integer',
        ];
    }

}

Zerion Mini Shell 1.0