git commit "style: improve tour flight details and auth pages"

This commit is contained in:
2026-08-20 12:08:53 +03:30
parent 73c8e52414
commit c04879b0d6
17 changed files with 1667 additions and 867 deletions
@@ -1,11 +0,0 @@
<?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
class reservationController extends Controller
{
//
}
@@ -75,9 +75,8 @@ class FlightStoreRequest extends FormRequest
],
'capacity' => [
'required',
'integer',
'min:1'
],
'integer'
],
'price' => [
'required',
'numeric',
+14 -2
View File
@@ -108,9 +108,21 @@ class Flight extends Model
});
});
$query->when($filters['origin'] ?? null, function ($query, $origin) {
$query->where('origin', $origin);
});
$query->when($filters['destination'] ?? null, function ($query, $destination) {
$query->where('destination', $destination);
});
}
#[Scope]
public function filterType(Builder $query, $type = null): void
{