hootlex / laravel-friendships

This package gives Eloquent models the ability to manage their friendships.
MIT License
706 stars 151 forks source link

group join #83

Closed harpreetsinghdhiman500 closed 7 years ago

harpreetsinghdhiman500 commented 7 years ago

i have some problem in join a friend in a group $user = Auth::user(); $group_name=user_group::find($group_id); $friend=Friendship::find($friend_id); $user->groupFriend($friend, $group_name);

I have not any idea for the parameter in groupFriend($friend, $group_name);

its give error Argument 1 passed to Illuminate\Database\Grammar::columnize() must be of the type array, string given, called in /var/www/html/krug_me/vendor/laravel/framework/src/Illuminate/Database/Query/Grammars/Grammar.php on line 131 and defined