Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to search #93

Open
koliali opened this issue Mar 17, 2023 · 1 comment
Open

how to search #93

koliali opened this issue Mar 17, 2023 · 1 comment

Comments

@koliali
Copy link

koliali commented Mar 17, 2023

how to search in pending request or received request or search in my friends ?

@wagnerdevel
Copy link

wagnerdevel commented Mar 18, 2023

Search friends:

$filter = '%Wagner%S%';

$friends = $user->getFriendsQueryBuilder()
    ->where(function($query) use ($filter) {
        $query->where('name', 'LIKE', $filter);
    })
    ->paginate(20);

#83 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants