Skip to content

2.2.0

Latest

Choose a tag to compare

@timgavin timgavin released this 11 Dec 02:09

What's New

Single-User Status Lookup

Added getBlockStatusFor() method to efficiently check bidirectional block status between two users in a single query.

$status = auth()->user()->getBlockStatusFor($user);

// Returns: ['is_blocking' => bool, 'is_blocked_by' => bool]

Perfect for profile pages where you need to know if the current user is blocking and/or blocked by another user without making multiple queries.