ok

Mini Shell

Direktori : /home2/selectio/www/fms-worksuite/app/Http/Requests/Attendance/
Upload File :
Current File : /home2/selectio/www/fms-worksuite/app/Http/Requests/Attendance/StoreAttendance.php

<?php

namespace App\Http\Requests\Attendance;

use App\Http\Requests\CoreRequest;

class StoreAttendance extends CoreRequest
{

    /**
     * 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 [
            'clock_in_time' => 'required',
            'clock_in_ip' => 'required|ip',
            'clock_out_ip' => 'ip',
            'working_from'  => 'required_if:work_from_type,==,other'
        ];
    }

}

Zerion Mini Shell 1.0