diff --git a/app/Http/Controllers/FlightController.php b/app/Http/Controllers/FlightController.php index bbd7792..d4c6452 100644 --- a/app/Http/Controllers/FlightController.php +++ b/app/Http/Controllers/FlightController.php @@ -31,8 +31,5 @@ class FlightController extends Controller return view('flights.index', compact('flights')); } - public function show() - { - } } diff --git a/bootstrap/app.php b/bootstrap/app.php index f7a6ae4..ddb22cc 100644 --- a/bootstrap/app.php +++ b/bootstrap/app.php @@ -3,7 +3,7 @@ use Illuminate\Foundation\Application; use Illuminate\Foundation\Configuration\Exceptions; use Illuminate\Foundation\Configuration\Middleware; - +use Illuminate\Http\Request; return Application::configure(basePath: dirname(__DIR__)) ->withRouting( web: [ @@ -15,7 +15,8 @@ return Application::configure(basePath: dirname(__DIR__)) health: '/up', ) ->withMiddleware(function (Middleware $middleware) { - // + $middleware->redirectGuestsTo(fn(Request $request)=>route('auth.login.index')); + }) ->withExceptions(function (Exceptions $exceptions) { // diff --git a/resources/views/components/flightcard.blade.php b/resources/views/components/flightcard.blade.php index 8b83397..4179b1f 100644 --- a/resources/views/components/flightcard.blade.php +++ b/resources/views/components/flightcard.blade.php @@ -2,12 +2,12 @@
{{ $flight->full_date_fa }}
{{ $flight->airport->city ?? '' }} diff --git a/resources/views/index.blade.php b/resources/views/index.blade.php index c3f9bf8..4638872 100644 --- a/resources/views/index.blade.php +++ b/resources/views/index.blade.php @@ -259,7 +259,7 @@