Files
freeu-project/app/Http/Requests/UpdateTermsAndConditionsRequest.php
Ritikesh yadav c661166e1d first commit
2024-03-28 14:52:40 +05:30

38 lines
665 B
PHP

<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class UpdateTermsAndConditionsRequest 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()
{
return [
'content' => 'required',
];
}
public function messages()
{
return [
'required' => 'The :attribute field must be required',
];
}
}