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());
 }
Exemple #2
0
 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;
 }
Exemple #4
0
 public function store($value = '')
 {
     $goods = parent::store($value);
     Cache::forget('goods');
     return $goods;
 }
Exemple #5
0
 public function store($value = '')
 {
     $goods = parent::store($value);
     return $goods;
 }