summaryrefslogtreecommitdiff
path: root/site/app/Exceptions/Handler.php
diff options
context:
space:
mode:
authorhorus_arch2018-02-07 18:07:53 +0100
committerhorus_arch2018-02-07 18:07:53 +0100
commit92eb8143762e116e8959f6270271fd5540ca50ac (patch)
treea9fdc5009b9816fb448431b24bac38f7a215d40d /site/app/Exceptions/Handler.php
parent71950479fbd6088f249e5fda3b180f294d1d745d (diff)
downloadalkobote-92eb8143762e116e8959f6270271fd5540ca50ac.tar.gz
Adds basic site in laravel.
Diffstat (limited to 'site/app/Exceptions/Handler.php')
-rw-r--r--site/app/Exceptions/Handler.php53
1 files changed, 53 insertions, 0 deletions
diff --git a/site/app/Exceptions/Handler.php b/site/app/Exceptions/Handler.php
new file mode 100644
index 0000000..7e2563a
--- /dev/null
+++ b/site/app/Exceptions/Handler.php
@@ -0,0 +1,53 @@
+<?php
+
+namespace App\Exceptions;
+
+use Exception;
+use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
+
+class Handler extends ExceptionHandler
+{
+ /**
+ * A list of the exception types that are not reported.
+ *
+ * @var array
+ */
+ protected $dontReport = [
+ //
+ ];
+
+ /**
+ * A list of the inputs that are never flashed for validation exceptions.
+ *
+ * @var array
+ */
+ protected $dontFlash = [
+ 'password',
+ 'password_confirmation',
+ ];
+
+ /**
+ * Report or log an exception.
+ *
+ * This is a great spot to send exceptions to Sentry, Bugsnag, etc.
+ *
+ * @param \Exception $exception
+ * @return void
+ */
+ public function report(Exception $exception)
+ {
+ parent::report($exception);
+ }
+
+ /**
+ * Render an exception into an HTTP response.
+ *
+ * @param \Illuminate\Http\Request $request
+ * @param \Exception $exception
+ * @return \Illuminate\Http\Response
+ */
+ public function render($request, Exception $exception)
+ {
+ return parent::render($request, $exception);
+ }
+}