Method | Description | |
---|---|---|
acceptFriendRequest ( |
||
befriend ( |
||
blockFriend ( |
||
canBefriend ( |
||
denyFriendRequest ( |
||
friends ( ) : Illuminate\Database\Eloquent\Relations\MorphMany | ||
getAcceptedFriendships ( string $groupSlug = '' ) : Illuminate\Database\Eloquent\Collection | ||
getAllFriendships ( string $groupSlug = '' ) : Illuminate\Database\Eloquent\Collection | ||
getBlockedFriendships ( ) : Illuminate\Database\Eloquent\Collection | ||
getDeniedFriendships ( ) : Illuminate\Database\Eloquent\Collection | ||
getFriendRequests ( ) : Illuminate\Database\Eloquent\Collection | ||
getFriends ( integer $perPage, string $groupSlug = '' ) : Illuminate\Database\Eloquent\Collection | This method will not return Friendship models It will return the 'friends' models. ex: App\User | |
getFriendsCount ( string $groupSlug = '' ) : integer | Get the number of friends | |
getFriendsOfFriends ( integer $perPage ) : Illuminate\Database\Eloquent\Collection | This method will not return Friendship models It will return the 'friends' models. ex: App\User | |
getFriendship ( |
||
getMutualFriends ( |
This method will not return Friendship models It will return the 'friends' models. ex: App\User | |
getMutualFriendsCount ( $other ) : integer | Get the number of friends | |
getPendingFriendships ( string $groupSlug = '' ) : Illuminate\Database\Eloquent\Collection | ||
groupFriend ( |
||
groups ( ) : Illuminate\Database\Eloquent\Relations\MorphMany | ||
hasBlocked ( |
||
hasFriendRequestFrom ( |
||
hasSentFriendRequestTo ( |
||
isBlockedBy ( |
||
isFriendWith ( |
||
unblockFriend ( |
||
unfriend ( |
||
ungroupFriend ( |
Method | Description | |
---|---|---|
getOrPaginate ( $builder, $perPage ) |
Method | Description | |
---|---|---|
findFriendship ( |
||
findFriendships ( $status = null, string $groupSlug = '' ) : Illuminate\Database\Eloquent\Collection | ||
friendsOfFriendsQueryBuilder ( string $groupSlug = '' ) : |
Get the query builder for friendsOfFriends ('friend' model) | |
getFriendsQueryBuilder ( string $groupSlug = '' ) : |
Get the query builder of the 'friend' model | |
getMutualFriendsQueryBuilder ( |
Get the query builder of the 'friend' model |
public acceptFriendRequest ( |
||
$recipient | ||
return | boolean | integer |
public befriend ( |
||
$recipient | ||
return |
public blockFriend ( |
||
$recipient | ||
return |
public canBefriend ( |
||
$recipient | ||
return | boolean |
public denyFriendRequest ( |
||
$recipient | ||
return | boolean | integer |
public friends ( ) : Illuminate\Database\Eloquent\Relations\MorphMany | ||
return | Illuminate\Database\Eloquent\Relations\MorphMany |
public getAcceptedFriendships ( string $groupSlug = '' ) : Illuminate\Database\Eloquent\Collection | ||
$groupSlug | string | |
return | Illuminate\Database\Eloquent\Collection |
public getAllFriendships ( string $groupSlug = '' ) : Illuminate\Database\Eloquent\Collection | ||
$groupSlug | string | |
return | Illuminate\Database\Eloquent\Collection |
public getBlockedFriendships ( ) : Illuminate\Database\Eloquent\Collection | ||
return | Illuminate\Database\Eloquent\Collection |
public getDeniedFriendships ( ) : Illuminate\Database\Eloquent\Collection | ||
return | Illuminate\Database\Eloquent\Collection |
public getFriendRequests ( ) : Illuminate\Database\Eloquent\Collection | ||
return | Illuminate\Database\Eloquent\Collection |
public getFriends ( integer $perPage, string $groupSlug = '' ) : Illuminate\Database\Eloquent\Collection | ||
$perPage | integer | Number |
$groupSlug | string | |
return | Illuminate\Database\Eloquent\Collection |
public getFriendsCount ( string $groupSlug = '' ) : integer | ||
$groupSlug | string | |
return | integer |
public getFriendsOfFriends ( integer $perPage ) : Illuminate\Database\Eloquent\Collection | ||
$perPage | integer | Number |
return | Illuminate\Database\Eloquent\Collection |
public getFriendship ( |
||
$recipient | ||
return |
public getMutualFriends ( |
||
$other | ||
$perPage | integer | Number |
return | Illuminate\Database\Eloquent\Collection |
public getMutualFriendsCount ( $other ) : integer | ||
return | integer |
public getPendingFriendships ( string $groupSlug = '' ) : Illuminate\Database\Eloquent\Collection | ||
$groupSlug | string | |
return | Illuminate\Database\Eloquent\Collection |
public groupFriend ( |
||
$friend | ||
$groupSlug | ||
return | boolean |
public groups ( ) : Illuminate\Database\Eloquent\Relations\MorphMany | ||
return | Illuminate\Database\Eloquent\Relations\MorphMany |
public hasBlocked ( |
||
$recipient | ||
return | boolean |
public hasFriendRequestFrom ( |
||
$recipient | ||
return | boolean |
public hasSentFriendRequestTo ( |
||
$recipient | ||
return | boolean |
public isBlockedBy ( |
||
$recipient | ||
return | boolean |
public isFriendWith ( |
||
$recipient | ||
return | boolean |
public unblockFriend ( |
||
$recipient | ||
return | mixed |
public ungroupFriend ( |
||
$friend | ||
$groupSlug | ||
return | boolean |