public function update(Request $request, $id)
    {
        $queue = Queue::findOrFail($id);

        $this->validate($request, [
            'alert_on_failed_job' => 'required|boolean',
            'alert_heartbeat_greater_than' => 'required|numeric|min:0|max:99999',
            'alert_pending_jobs_greater_than' => 'required|numeric|min:0|max:99999',
            'alert_failed_jobs_greater_than' => 'required|numeric|min:0|max:99999',
            'alert_wait_time_greater_than' => 'required|numeric|min:0|max:99999',
        ]);

        $queue->fill($request->only(['alert_on_failed_job', 'alert_heartbeat_greater_than', 'alert_pending_jobs_greater_than', 'alert_failed_jobs_greater_than', 'alert_wait_time_greater_than']));
        $queue->save();

        return redirect(route('eyewitness.queues.show', $queue->id).'#settings')->withSuccess('The queue configuration has been updated.');
    }