Lines Matching refs:user
74 'favorites' => $this->getFavorites($tree, Auth::user()),
127 * @param UserInterface $user
131 public function getFavorites(Tree $tree, UserInterface $user): array argument
135 ->where('user_id', '=', $user->id())
162 $user = Validator::attributes($request)->user();
172 $this->addUrlFavorite($tree, $user, $url, $title ?: $url, $note);
176 $this->addRecordFavorite($tree, $user, $record, $note);
193 $user = Validator::attributes($request)->user();
199 ->where('user_id', '=', $user->id())
210 * @param UserInterface $user
217 …private function addUrlFavorite(Tree $tree, UserInterface $user, string $url, string $title, strin… argument
221 'user_id' => $user->id(),
232 * @param UserInterface $user
238 …private function addRecordFavorite(Tree $tree, UserInterface $user, GedcomRecord $record, string $… argument
242 'user_id' => $user->id(),