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

43 lines
1.2 KiB
PHP

<?php
namespace Modules\Setting\app\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class CreateOrUpdateSeoSettingRequest extends FormRequest
{
/**
* Get the validation rules that apply to the request.
*/
public function rules(): array
{
return [
'meta_keywords' => 'sometimes|nullable|string|max:255',
'meta_detail' => 'sometimes|nullable|string|max:255',
'meta_title' => 'sometimes|nullable|string|max:255',
];
}
public function messages()
{
return [
'meta_keywords.string' => 'The meta keywords field must be a string.',
'meta_keywords.max' => 'The meta keywords may not be greater than 255 characters.',
'meta_detail.string' => 'The meta detail field must be a string.',
'meta_detail.max' => 'The meta detail may not be greater than 255 characters.',
'meta_title.string' => 'The meta title field must be a string.',
'meta_title.max' => 'The meta title may not be greater than 255 characters.',
];
}
/**
* Determine if the user is authorized to make this request.
*/
public function authorize(): bool
{
return true;
}
}