New in Laravel 11: Context for Logging Global Data

preview_player
Показать описание
A new feature in Laravel that allows you to add values to the context and then access them in logs or queued jobs.

- - - - -
Support the channel by checking out my products:

- - - - -
Other places to follow:
Рекомендации по теме
Комментарии
Автор

Be careful where the middleware is added. It must come in the web middleware group and after start session. On first glance you seem to be adding to global middleware and before session start

MarkSnape
Автор

I think it is a brilliant idea to capture the trace id from monitoring platforms (like the Newrelic or sentry). If there is an error, when you log your stacktrace, this will help a lot for troubleshotting on production enviroments.

ricdizio
Автор

This feature for logging has been released a many years ago.
Log::shareContext('context')
What is different with new one ?

antondavydov
Автор

In Laravel 11, when I'm attempting to send an email, it's not working. Email details are stored in logs automatically but emails are not being sent. Is there any solutions to this problem?

alauddin
Автор

I am regular visitor of this channel. I want to know one thing. I know livewire but also have fascination for react.js. I don't get proper complete guide for laravel and react.js. Is would be wise to stay in livewire instead of react.js? Could liveware beat react.js?

iftekharemon
Автор

Do you have a Laravel for beginners course?

pythonantole
Автор

I think it's a bad practice like $_GLOBALS... the framework is going in the wrong place, IMHO

you-are-not-allowed