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

31 lines
635 B
PHP

<?php
namespace Modules\Review\Http\Requests;
use Modules\Core\Http\Requests\Request;
class StoreReviewRequest 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',
'captcha' => 'required|captcha',
];
}
}