File tree 4 files changed +1256
-110
lines changed
4 files changed +1256
-110
lines changed Original file line number Diff line number Diff line change 1
- APP_NAME = Laravel
1
+ APP_NAME = " WireUI Docs "
2
2
APP_ENV = local
3
3
APP_KEY =
4
4
APP_DEBUG = true
5
- APP_URL = http://localhost
5
+ APP_URL = http://wireui-docs.test
6
6
7
7
LOG_CHANNEL = stack
8
8
LOG_DEPRECATIONS_CHANNEL = null
@@ -11,7 +11,7 @@ LOG_LEVEL=debug
11
11
DB_CONNECTION = mysql
12
12
DB_HOST = 127.0.0.1
13
13
DB_PORT = 3306
14
- DB_DATABASE = docs
14
+ DB_DATABASE = wireui_docs
15
15
DB_USERNAME = root
16
16
DB_PASSWORD =
17
17
@@ -50,3 +50,6 @@ PUSHER_APP_CLUSTER=mt1
50
50
51
51
MIX_PUSHER_APP_KEY = " ${ PUSHER_APP_KEY } "
52
52
MIX_PUSHER_APP_CLUSTER = " ${ PUSHER_APP_CLUSTER } "
53
+
54
+ SENTRY_LARAVEL_DSN =
55
+ SENTRY_TRACES_SAMPLE_RATE = 1
Original file line number Diff line number Diff line change 7
7
8
8
class Handler extends ExceptionHandler
9
9
{
10
- /**
11
- * A list of the exception types that are not reported.
12
- *
13
- * @var string[]
14
- */
15
10
protected $ dontReport = [
16
11
//
17
12
];
18
13
19
- /**
20
- * A list of the inputs that are never flashed for validation exceptions.
21
- *
22
- * @var string[]
23
- */
24
14
protected $ dontFlash = [
25
15
'current_password ' ,
26
16
'password ' ,
27
17
'password_confirmation ' ,
28
18
];
29
19
30
- /**
31
- * Register the exception handling callbacks for the application.
32
- *
33
- * @return void
34
- */
35
20
public function register ()
36
21
{
37
- $ this ->reportable (function (Throwable $ e ) {
38
- //
22
+ $ this ->reportable (function (Throwable $ exception ) {
23
+ if (app ()->bound ('sentry ' ) && $ this ->shouldReport ($ exception )) {
24
+ app ('sentry ' )->captureException ($ exception );
25
+ }
39
26
});
40
27
}
41
28
}
Original file line number Diff line number Diff line change 16
16
"laravel/sanctum" : " ^2.11" ,
17
17
"laravel/tinker" : " ^2.5" ,
18
18
"livewire/livewire" : " ^2.8" ,
19
- "ph7jack/wireui" : " ^0.14.2"
19
+ "ph7jack/wireui" : " ^0.14.2" ,
20
+ "sentry/sentry-laravel" : " ^2.10"
20
21
},
21
22
"require-dev" : {
22
23
"facade/ignition" : " ^2.5" ,
You can’t perform that action at this time.
0 commit comments