// SYSTEM PANEL //
[ROOT]
/
mnt
/
pleskStorage
/
vhosts
/
kodsolutions.net
/
subdomains
/
go-rent.kodsolutions.net
/
app
/
Http
/
Requests
[ PARENT ]
EDIT :: ReviewRequest.php
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class ReviewRequest extends FormRequest { /** * Determine if the user is authorized to make this request. */ public function authorize(): bool { return true; } /** * Get the validation rules that apply to the request. * * @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string> */ public function rules(): array { return [ "user_id" => "required|integer|exists:users,id", "car_id" => "required|integer|exists:cars,id", "office_id" => "required|integer|exists:offices,id", "rating" => "required|in:1,2,3,4,5", "comment" => "nullable|string", ]; } }
SAVE
CANCEL