id; } /** * Get the middleware the job should pass through. * * @return array */ public function middleware(): array { return [(new WithoutOverlapping("propipe:ipc:{$this->id}"))->shared()->dontRelease()]; } /** * Create a new job instance. * * @return void */ public function __construct($id) { $this->id = $id; } /** * Execute the job. * * @return void */ public function handle() { $id = $this->id; $profile = Profile::find($id); if(!$profile) { return 1; } $profile->status_count = $profile->status_count + 1; $profile->last_status_at = now(); $profile->save(); AccountService::del($id); AccountService::get($id); return 1; } }