getTimestamp(); $this->getTable()->insert(compact('connection', 'queue', 'payload', 'failed_at', 'exception')); } /** * Get a list of all of the failed jobs. * * @return array */ public function all() { $all = $this->getTable()->orderBy('_id', 'desc')->get()->all(); $all = array_map(function ($job) { $job['id'] = (string) $job['_id']; return $job; }, $all); return $all; } /** * Get a single failed job. * * @param mixed $id * @return array */ public function find($id) { $job = $this->getTable()->find($id); $job['id'] = (string) $job['_id']; return $job; } /** * Delete a single failed job from storage. * * @param mixed $id * @return bool */ public function forget($id) { return $this->getTable()->where('_id', $id)->delete() > 0; } }