fix: dynamic flight details view and null-safe relations

This commit is contained in:
2026-08-18 14:55:16 +03:30
parent f47a876a87
commit d427d8cf50
5 changed files with 24 additions and 175 deletions
+4 -4
View File
@@ -50,10 +50,10 @@ class FlightController extends Controller
return back()->with('success', 'نظر شما با موفقیت ثبت شد.');
} catch (\Exception $e) {
// return back()
// ->withInput()
// ->with('error', 'ثبت نظر با خطا مواجه شد.');
dd($e->getMessage());
return back()
->withInput()
->with('error', 'ثبت نظر با خطا مواجه شد.');
}
}
}