app/Processors/WorkOrder/WorkOrderAttachmentProcessor.php
public function store(AttachmentRequest $request, $workOrderId)
    {
        $workOrder = $this->workOrder->findOrFail($workOrderId);

        return $this->dispatch(new Store($request, $workOrder->attachments()));
    }
public function store(AttachmentRequest $request, $workOrderId)
    {
        $workOrder = $this->workOrder->findOrFail($workOrderId);

        return $this->dispatch(new Store($request, $workOrder->attachments()));
    }
Processes uploading and adding attaachments to the specified work order.

@param AttachmentRequest $request
@param int|string        $workOrderId

@return bool|array