diff --git a/routes/web.php b/routes/web.php index 0c4c3c9e..eb443982 100644 --- a/routes/web.php +++ b/routes/web.php @@ -118,7 +118,7 @@ Route::group(['middleware' => ['role:admin']], function() { } })->name('invoice.old'); } catch (\Exception $exception){ - return $exception->getMessage(); + return redirect('login'); } });