From dc6a5bf998060d5ac26446bb0b6c6191a4cc4e20 Mon Sep 17 00:00:00 2001 From: Marcus Moore Date: Mon, 9 Sep 2024 14:54:19 -0700 Subject: [PATCH] Reflash session so login message is displayed --- app/Http/Controllers/DashboardController.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Http/Controllers/DashboardController.php b/app/Http/Controllers/DashboardController.php index fc01c496c..af9c7ee44 100755 --- a/app/Http/Controllers/DashboardController.php +++ b/app/Http/Controllers/DashboardController.php @@ -5,6 +5,7 @@ namespace App\Http\Controllers; use Illuminate\Support\Facades\Artisan; use Illuminate\Http\RedirectResponse; use \Illuminate\Contracts\View\View; +use Illuminate\Support\Facades\Session; /** @@ -44,6 +45,8 @@ class DashboardController extends Controller return view('dashboard')->with('asset_stats', $asset_stats)->with('counts', $counts); } else { + Session::reflash(); + // Redirect to the profile page return redirect()->intended('account/view-assets'); }