friendship
friendship copied to clipboard
friendship system for Laravel 5
Results
2
friendship issues
Sort by
recently updated
recently updated
newest added
``` $friendships = $this->user->getAcceptedFriendships(); foreach ($friendships as $friendship) { if ($friendship->sender_id != $this->user->id) { $this->friends[] = $friendship->sender()->first(); } else { $this->friends[] = $friendship->recipient()->first(); } } $this->page['friends'] = $this->friends; ```
The namespace is pointing to: namespace PackageBackup\Friendable; Correct: namespace Ghanem\Friendship;