When a job is created in Laravel it get's a display name as whatever the job class is. The job key is the handler class with the suffix @handle. For example the class SomeJob will be displayed as SomeJob@handle. In order to get the right job name for logging purposes it is better to just use the class name instead. Adding the displayName to the created job payload will take care of that.
When a job is created in Laravel it get's a display name as whatever the job class is. The
job
key is the handler class with the suffix@handle
. For example the classSomeJob
will be displayed asSomeJob@handle
. In order to get the right job name for logging purposes it is better to just use the class name instead. Adding thedisplayName
to the created job payload will take care of that.