fix: dynamic flight details view and null-safe relations
This commit is contained in:
@@ -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', 'ثبت نظر با خطا مواجه شد.');
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user