public function update(AttachmentUpdateRequest $request, $workOrderId, $attachmentId)
    {
        if ($this->processor->update($request, $workOrderId, $attachmentId)) {
            flash()->success('Success!', 'Successfully updated attachment.');

            return redirect()->route('maintenance.work-orders.attachments.show', [$workOrderId, $attachmentId]);
        } else {
            flash()->error('Error!', 'There was an issue updating this attachment. Please try again.');

            return redirect()->route('maintenance.work-orders.attachments.edit', [$workOrderId, $attachmentId]);
        }
    }
public function update(AttachmentUpdateRequest $request, $workOrderId, $attachmentId)
    {
        if ($this->processor->update($request, $workOrderId, $attachmentId)) {
            flash()->success('Success!', 'Successfully updated attachment.');

            return redirect()->route('maintenance.work-orders.attachments.show', [$workOrderId, $attachmentId]);
        } else {
            flash()->error('Error!', 'There was an issue updating this attachment. Please try again.');

            return redirect()->route('maintenance.work-orders.attachments.edit', [$workOrderId, $attachmentId]);
        }
    }
public function update ( AttachmentUpdateRequest $ request , $ workOrderId , $ attachmentId ) { if ( $ this -> processor -> update ( $ request , $ workOrderId , $ attachmentId ) ) { flash ( ) -> success ( 'Success!' , 'Successfully updated attachment.' ) ; return redirect ( ) -> route ( 'maintenance.work-orders.attachments.show' , [ $ workOrderId , $ attachmentId ] ) ; } else { flash ( ) -> error ( 'Error!' , 'There was an issue updating this attachment. Please try again.' ) ; return redirect ( ) -> route ( 'maintenance.work-orders.attachments.edit' , [ $ workOrderId , $ attachmentId ] ) ; } }
Updates the specified ticket upload.

@param AttachmentUpdateRequest $request
@param int|string              $workOrderId
@param int|string              $attachmentId

@return \Illuminate\Http\RedirectResponse
Updates the specified ticket upload .