コード例 #1
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($projectId, $noteId)
 {
     if ($this->repository->find($noteId)->delete()) {
         return ["success" => true];
     }
     return ["success" => false];
 }
コード例 #2
0
 public function update(array $data, $id)
 {
     return $this->repository->update($data, $id);
 }