@@ -124,7 +124,7 @@ private function registerRoutes(): void
124124 level: $ this ->mapJsTypeToPsr3Level ($ log ['type ' ]),
125125 message: $ this ->buildLogMessageFromData ($ log ['data ' ]),
126126 context: [
127- 'url ' => $ log ['url ' ],
127+ 'url ' => $ log ['url ' ],
128128 'user_agent ' => $ log ['userAgent ' ] ?: null ,
129129 'timestamp ' => $ log ['timestamp ' ] ?: now ()->toIso8601String (),
130130 ]
@@ -133,16 +133,16 @@ private function registerRoutes(): void
133133
134134 return response ()->json (['status ' => 'logged ' ]);
135135 })
136- ->name ('boost.browser-logs ' )
137- ->withoutMiddleware (VerifyCsrfToken::class);
136+ ->name ('boost.browser-logs ' )
137+ ->withoutMiddleware (VerifyCsrfToken::class);
138138 }
139139
140140 /**
141141 * Build a string message for the log based on various input types. Single dimensional, and multi:
142142 * "data":[
143143 * {"message":"Unhandled Promise Rejection","reason":{"name":"TypeError","message":"NetworkError when attempting to fetch resource.","stack":""}}]
144144 *
145- * @param array<mixed> $data
145+ * @param array<mixed> $data
146146 */
147147 protected function buildLogMessageFromData (array $ data ): string
148148 {
@@ -174,13 +174,13 @@ protected function registerBrowserLogger(): void
174174 }
175175
176176 /**
177- * Register a Blade directive for the browser logger script
177+ * Register a Blade directive for the browser logger script.
178178 *
179- * @param BladeCompiler $bladeCompiler
179+ * @param BladeCompiler $bladeCompiler
180180 */
181181 protected function registerBladeDirectives (BladeCompiler $ bladeCompiler ): void
182182 {
183- $ bladeCompiler ->directive ('boostJs ' , fn () => '<?php echo \\Laravel \\Boost \\Services \\BrowserLogger::getScript(); ?> ' );
183+ $ bladeCompiler ->directive ('boostJs ' , fn () => '<?php echo \\Laravel \\Boost \\Services \\BrowserLogger::getScript(); ?> ' );
184184 }
185185
186186 private function mapJsTypeToPsr3Level (string $ type ): string
0 commit comments