1
0
mirror of https://github.com/robonen/metr.git synced 2026-03-20 10:54:41 +00:00
Files
metr/backend/app/Http/Requests/StoreFeedbackRequest.php

20 lines
402 B
PHP

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