FleetCart/Modules/Review/Http/Requests/UpdateReviewRequest.php

31 lines
640 B
PHP
Raw Normal View History

2023-06-11 12:14:03 +00:00
<?php
namespace Modules\Review\Http\Requests;
use Modules\Core\Http\Requests\Request;
class UpdateReviewRequest extends Request
{
/**
* Available attributes.
*
* @var string
*/
protected $availableAttributes = 'review::attributes';
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'rating' => 'required|numeric',
'reviewer_name' => 'required',
'comment' => 'required',
'is_approved' => 'required|boolean',
];
}
}