public function store(Request $request, Order $order) { if (!$this->user()->can('cancel', $order)) { return $this->error(OrderCancellation::CAN_NOT_CANCEL); } $me = $this->user(); $this->orderManager->createCancellation($order, $request->all(), $me, $me->isOrderBuyer($order) ? $order->getSeller() : $order->getBuyer()); return $this->success(); }