/** * Wetches titles user has added to specified list. * * @param Builder $query * @param SentryUser $user * @param string $name * @return array */ public function scopeFetchLists($query, SentryUser $user) { $user = $query->with('title')->findOrFail($user->id); return $this->compileList($user->title); }