1
0
mirror of https://github.com/robonen/metr.git synced 2026-03-20 10:54:41 +00:00

Offer filters and user feedback

This commit is contained in:
2022-05-29 04:21:56 +07:00
parent ff7fe27698
commit fe2e5d316c
13 changed files with 272 additions and 10 deletions

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Http\Requests;
class UpdateFeedbackRequest extends BaseRequest
{
/**
* Get the validation rules that apply to the request.
*
* @return array<string, mixed>
*/
public function rules()
{
return [
'comment' => ['string', 'max:2000'],
'rating' => ['numeric', 'min:1', 'max:5'],
];
}
}