Last active
October 27, 2021 05:37
-
-
Save Parables/39eb3af72ded9aec9b8562ffb454d100 to your computer and use it in GitHub Desktop.
BrowserConsole.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Http\Middleware; | |
| use Closure; | |
| use Illuminate\Http\Request; | |
| use Monolog\Handler\BrowserConsoleHandler; | |
| class BrowserConsole | |
| { | |
| /** | |
| * Handle an incoming request. | |
| * | |
| * @param \Illuminate\Http\Request $request | |
| * @param \Closure $next | |
| * @return mixed | |
| */ | |
| public function handle(Request $request, Closure $next) | |
| { | |
| $response = $next($request); | |
| BrowserConsoleHandler::class; | |
| return $response; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment