Exemple #1
0
 /**
  * Store a new note in the database
  *
  * @param $data
  * @return static
  * @throws \Exception
  */
 public function store($data)
 {
     $note = $this->noteRepository->store(['index' => $data['index'], 'project_id' => project()->id, 'from_id' => user()->id, 'note_type_id' => 1, 'uuid' => (string) Uuid::generate(4)]);
     $this->storeParams($note->id, $data['position']);
     return $note;
 }