From 3c5e246b0f1fc427eab261705280c8dceb7cb433 Mon Sep 17 00:00:00 2001 From: payme Date: Fri, 6 Jun 2025 11:06:50 +0100 Subject: [PATCH] Fixing error messages --- resources/views/errors/403.blade.php | 6 +++++- resources/views/errors/404.blade.php | 2 +- resources/views/errors/500.blade.php | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/resources/views/errors/403.blade.php b/resources/views/errors/403.blade.php index 4a4e2092b..8a6378045 100644 --- a/resources/views/errors/403.blade.php +++ b/resources/views/errors/403.blade.php @@ -10,7 +10,11 @@

Error!

-

User does not have the right roles.

+ @if($exception->getMessage()) +

{{ $exception->getMessage() }}

+ @else +

You are not authorized to perform this action!

+ @endif Go back to homepage
diff --git a/resources/views/errors/404.blade.php b/resources/views/errors/404.blade.php index 4a4e2092b..e7e8b44ce 100644 --- a/resources/views/errors/404.blade.php +++ b/resources/views/errors/404.blade.php @@ -10,7 +10,7 @@

Error!

-

User does not have the right roles.

+

Page not found

Go back to homepage
diff --git a/resources/views/errors/500.blade.php b/resources/views/errors/500.blade.php index 4a4e2092b..a5bc99f85 100644 --- a/resources/views/errors/500.blade.php +++ b/resources/views/errors/500.blade.php @@ -10,7 +10,7 @@

Error!

-

User does not have the right roles.

+

Oops! Something is not working. Try again in a bit!

Go back to homepage