Files
aroginhealthcare/Modules/Setting/app/Http/Requests/CreateOrUpdateAdditionalSettingRequest.php
2025-08-17 16:23:14 +05:45

36 lines
790 B
PHP

<?php
namespace Modules\Setting\app\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class CreateOrUpdateAdditionalSettingRequest extends FormRequest
{
/**
* Get the validation rules that apply to the request.
*/
public function rules(): array
{
return [
'additional_script' => 'nullable|string',
'map' => 'nullable|string',
];
}
public function messages()
{
return [
'additional_script.string' => 'The additional script field must be a string.',
'map.string' => 'The map field must be a string.',
];
}
/**
* Determine if the user is authorized to make this request.
*/
public function authorize(): bool
{
return true;
}
}