public function destroy($id)
    {
        $queue = Queue::findOrFail($id);

        $queue->history()->delete();
        $queue->delete();

        return redirect(route('eyewitness.dashboard').'#queue')->withSuccess('The queue has been deleted.');
    }
public function destroy($id)
    {
        $queue = Queue::findOrFail($id);

        $queue->history()->delete();
        $queue->delete();

        return redirect(route('eyewitness.dashboard').'#queue')->withSuccess('The queue has been deleted.');
    }
public function destroy ( $ id ) { $ queue = Queue :: findOrFail ( $ id ) ; $ queue -> history ( ) -> delete ( ) ; $ queue -> delete ( ) ; return redirect ( route ( 'eyewitness.dashboard' ) . '#queue' ) -> withSuccess ( 'The queue has been deleted.' ) ; }
Destroy the queue.

@param  integer  $id
@return \Illuminate\Http\Response
Destroy the queue .