git commit "Complete today's development"

This commit is contained in:
2026-08-16 16:56:21 +03:30
parent 6302570d75
commit 043b6ed931
17 changed files with 1107 additions and 825 deletions
+46
View File
@@ -0,0 +1,46 @@
<?php
namespace App\Http\Requests;
use Illuminate\Contracts\Validation\ValidationRule;
use Illuminate\Foundation\Http\FormRequest;
class FlightSearchRequest 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, ValidationRule|array<mixed>|string>
*/
public function rules(): array
{
return [
'origin' =>
[
'required',
],
'destination' =>
[
'required',
],
'departure_date' =>
[
'required',
'date',
],
'passengers' =>
[ 'required',
'integer',
'min:1',
],
]; }
}