public function create($workOrderId)
    {
        $workOrder = $this->workOrder->findOrFail($workOrderId);

        $form = $this->presenter->form($workOrder, $workOrder->attachments()->getRelated());

        return view('work-orders.attachments.create', compact('form'));
    }
public function create($workOrderId)
    {
        $workOrder = $this->workOrder->findOrFail($workOrderId);

        $form = $this->presenter->form($workOrder, $workOrder->attachments()->getRelated());

        return view('work-orders.attachments.create', compact('form'));
    }
public function create ( $ workOrderId ) { $ workOrder = $ this -> workOrder -> findOrFail ( $ workOrderId ) ; $ form = $ this -> presenter -> form ( $ workOrder , $ workOrder -> attachments ( ) -> getRelated ( ) ) ; return view ( 'work-orders.attachments.create' , compact ( 'form' ) ) ; }
Displays the form for adding attachments to the specified work order.

@param int|string $workOrderId

@return \Illuminate\View\View
Displays the form for adding attachments to the specified work order .