// SYSTEM PANEL //
[ROOT]
/
mnt
/
pleskStorage
/
vhosts
/
kodsolutions.net
/
subdomains
/
go-rent.kodsolutions.net
/
app
/
Http
/
Requests
[ PARENT ]
EDIT :: BookingRequest.php
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class BookingRequest 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 [ "car_id"=> "required|integer|exists:cars,id", "dropoff_city_id"=> "required|integer|exists:cities,id", "pickup_city_id"=> "nullable|integer|exists:cities,id", "pickup_time" => "required|date_format:H:i", "dropoff_time" => "required|date_format:H:i", "pickup_date" => "required|date", "address" => "required", "dropoff_date" => "required|date|after_or_equal:pickup_dat", ]; } }
SAVE
CANCEL