File: /mnt/data/ghayatcom/ghayatcom-api/app/Http/Requests/AdminSettingUpdateRequest.php
<?php
namespace App\Http\Requests;
use App\Library\CustomFailedValidation;
use Illuminate\Contracts\Validation\Validator;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Http\Exceptions\HttpResponseException;
class AdminSettingUpdateRequest extends CustomFailedValidation
{
/**
* 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 [
'ondemand' => 'nullable',
'home_visit' => 'nullable',
'schedule_appointment' => 'nullable',
'tax' =>'nullable',
'lab_tax' =>'nullable',
'platform_fee' =>'nullable',
'transaction_fee' =>'nullable',
'tokbox_api_key' =>'nullable',
'tokbox_secret' =>'nullable',
];
}
}