git commit "style: improve tour flight details and auth pages"
This commit is contained in:
@@ -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
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user