FleetCart/Modules/Review/Http/Requests/UpdateReviewRequest.php
2023-06-11 13:14:03 +01:00

31 lines
640 B
PHP

<?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',
];
}
}