public static function addNew($user_id, $color_id, $content) { $note = new UserNote(); $note->text = $content; $note->user_id = $user_id; $note->note_color_id = $color_id; $note->save(); }