Skip to content

Commit c5f1f47

Browse files
[12.x] Clarify where the code should be placed (#10423)
* Clarify where the code should be placed * Update context.md --------- Co-authored-by: Taylor Otwell <taylor@laravel.com>
1 parent 518e070 commit c5f1f47

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎context.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ Stacks can be useful to capture historical information about a request, such as
227227
use Illuminate\Support\Facades\Context;
228228
use Illuminate\Support\Facades\DB;
229229

230+
// In AppServiceProvider.php...
230231
DB::listen(function ($event) {
231232
Context::push('queries', [$event->time, $event->sql]);
232233
});

0 commit comments

Comments
 (0)