public function update(AttachmentUpdateRequest $request, $workOrderId, $attachmentId)
    {
        $workOrder = $this->workOrder->findOrFail($workOrderId);

        $attachment = $workOrder->attachments()->findOrFail($attachmentId);

        return $this->dispatch(new Update($request, $attachment));
    }
public function update(AttachmentUpdateRequest $request, $workOrderId, $attachmentId)
    {
        $workOrder = $this->workOrder->findOrFail($workOrderId);

        $attachment = $workOrder->attachments()->findOrFail($attachmentId);

        return $this->dispatch(new Update($request, $attachment));
    }
public function update ( AttachmentUpdateRequest $ request , $ workOrderId , $ attachmentId ) { $ workOrder = $ this -> workOrder -> findOrFail ( $ workOrderId ) ; $ attachment = $ workOrder -> attachments ( ) -> findOrFail ( $ attachmentId ) ; return $ this -> dispatch ( new Update ( $ request , $ attachment ) ) ; }
Updates the specified work order attachment.

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

@return bool
Updates the specified work order attachment .