beforeMessage = JobStarted::on($this->channel)->withMessage($message); return $this; } public function after(string $message): self { $this->afterMessage = JobFinished::on($this->channel)->withMessage($message); return $this; } public function shouldReload(): self { $this->afterMessage->shouldReload(); return $this; } public function handle(JobDecorator $job, Closure $next): void { event($this->beforeMessage); $next($job); event($this->afterMessage); } }