division = $pwt->division; $this->charId = $pwt->charId; $this->page = $pwt->page; $this->delay = 10; $this->connection = 'database'; } /** * Execute the job. * * @return void */ public function handle() { //Declare the class variables $finance = new FinanceHelper(); $finance->GetWalletTransaction($this->division, $this->charId); //After the job is completed, delete the job $this->delete(); } /** * The job failed to process * * @param Exception $exception * @return void */ public function failed($exception) { // Send user notification of the failure, etc. dd($exception); } }