public function store(ReportRequest $request, $workOrderId)
    {
        $workOrder = $this->workOrder->findOrFail($workOrderId);

        $report = $this->report->newInstance();

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

        $report = $this->report->newInstance();

        return $this->dispatch(new Store($request, $workOrder, $report));
    }
public function store ( ReportRequest $ request , $ workOrderId ) { $ workOrder = $ this -> workOrder -> findOrFail ( $ workOrderId ) ; $ report = $ this -> report -> newInstance ( ) ; return $ this -> dispatch ( new Store ( $ request , $ workOrder , $ report ) ) ; }
Creates a new work order report.

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

@return bool
Creates a new work order report .