| $this->dispatch(new StoreNotice($request->all(), $non, $staff->_id, $no_siri)); | $this->dispatch(new StoreNotice($request->all(), $non, $staff->_id, $no_siri)); | ||||
| //mobile already accept 'kpd' string, so no need to change string name to 'notis'. | //mobile already accept 'kpd' string, so no need to change string name to 'notis'. | ||||
| array_push($data, array('kpd' => $non)); | |||||
| array_push($data, array( | |||||
| 'kpd' => $kpd, | |||||
| 'non' => $non | |||||
| )); | |||||
| return $this->sendResponse($data, 'Berjaya simpan rekod notis!'); | return $this->sendResponse($data, 'Berjaya simpan rekod notis!'); | ||||
| // } | // } |