{"action":"opened","issue":{"url":"https://api.github.com/repos/hootlex/laravel-friendships/issues/117","repository_url":"https://api.github.com/repos/hootlex/laravel-friendships","labels_url":"https://api.github.com/repos/hootlex/laravel-friendships/issues/117/labels{/name}","comments_url":"https://api.github.com/repos/hootlex/laravel-friendships/issues/117/comments","events_url":"https://api.github.com/repos/hootlex/laravel-friendships/issues/117/events","html_url":"https://github.com/hootlex/laravel-friendships/issues/117","id":376162542,"node_id":"MDU6SXNzdWUzNzYxNjI1NDI=","number":117,"title":" can't send friend request","user":{"login":"bhdrnzl","id":14258979,"node_id":"MDQ6VXNlcjE0MjU4OTc5","avatar_url":"https://avatars0.githubusercontent.com/u/14258979?v=4","gravatar_id":"","url":"https://api.github.com/users/bhdrnzl","html_url":"https://github.com/bhdrnzl","followers_url":"https://api.github.com/users/bhdrnzl/followers","following_url":"https://api.github.com/users/bhdrnzl/following{/other_user}","gists_url":"https://api.github.com/users/bhdrnzl/gists{/gist_id}","starred_url":"https://api.github.com/users/bhdrnzl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhdrnzl/subscriptions","organizations_url":"https://api.github.com/users/bhdrnzl/orgs","repos_url":"https://api.github.com/users/bhdrnzl/repos","events_url":"https://api.github.com/users/bhdrnzl/events{/privacy}","received_events_url":"https://api.github.com/users/bhdrnzl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-31T21:12:57Z","updated_at":"2018-10-31T21:12:57Z","closed_at":null,"author_association":"NONE","body":"Argument 1 passed to App\\User::befriend() must be an instance of Illuminate\\Database\\Eloquent\\Model, integer given, called in C:\\xampp\\htdocs\\handicraft\\app\\Http\\Controllers\\UserController.php on line 185\r\n\r\nline 185;\r\n`public function friendRequest($nick) \r\n\t{\r\n\t\t$recipient = Auth::id();\r\n\t\t$user = User::where('slug', $nick)->first();\r\n\t\t$user->befriend($recipient);\r\n\r\n\t\tnotify()->success('Arkadaşlık isteği gönderildi');\r\n\r\n\t\treturn back();\r\n\t}`"}}
{"actor":{"display_login":"bhdrnzl"}}