You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use App\Http\Requests\ListMentionSuggestionsRequest;
use App\Models\Conversation;
use App\Models\User;
use App\Queries\MentionSuggestionsQuery;
use App\Queries\OrganizationSuggestionsQuery;
use Illuminate\Container\Attributes\CurrentUser;
use Illuminate\Http\JsonResponse;
final readonly class MentionSuggestionController
{
/**
* Organizations are only suggested outside orgs, since mentions only link to them in commits.
*/
public function index(#[CurrentUser] User $user, ListMentionSuggestionsRequest $request, MentionSuggestionsQuery $suggestions, OrganizationSuggestionsQuery $organizations): JsonResponse