public function store(Request $request) { $data = $request->all(); if (!$this->repository->store($data)) { return $this->response(405, "Validation Errors", $this->repository->getErrors()->toArray(), 200); } return $this->success("Saved Successfully.", $this->repository->getStoredObject()); }
public function store($value = '') { $action = parent::store($value); // Cache::forget('actions'); return $action; }
/** * @param $requestData * @return static */ public function store($requestData) { $role = parent::store($requestData); $role->actions()->attach($this->actions($requestData['actions'])); return $role; }
public function store($value = '') { $goods = parent::store($value); Cache::forget('goods'); return $goods; }
public function store($value = '') { $goods = parent::store($value); return $goods; }