{"action":"created","issue":{"url":"https://api.github.com/repos/thekordy/ticketit/issues/218","repository_url":"https://api.github.com/repos/thekordy/ticketit","labels_url":"https://api.github.com/repos/thekordy/ticketit/issues/218/labels{/name}","comments_url":"https://api.github.com/repos/thekordy/ticketit/issues/218/comments","events_url":"https://api.github.com/repos/thekordy/ticketit/issues/218/events","html_url":"https://github.com/thekordy/ticketit/issues/218","id":163935259,"number":218,"title":"Problem with /Models/Agent.php , ticket id not pass to isTicketOwner and isAssignedAgent","user":{"login":"igarbera","id":6005834,"avatar_url":"https://avatars.githubusercontent.com/u/6005834?v=3","gravatar_id":"","url":"https://api.github.com/users/igarbera","html_url":"https://github.com/igarbera","followers_url":"https://api.github.com/users/igarbera/followers","following_url":"https://api.github.com/users/igarbera/following{/other_user}","gists_url":"https://api.github.com/users/igarbera/gists{/gist_id}","starred_url":"https://api.github.com/users/igarbera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igarbera/subscriptions","organizations_url":"https://api.github.com/users/igarbera/orgs","repos_url":"https://api.github.com/users/igarbera/repos","events_url":"https://api.github.com/users/igarbera/events{/privacy}","received_events_url":"https://api.github.com/users/igarbera/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-05T20:10:45Z","updated_at":"2016-07-05T21:05:57Z","closed_at":"2016-07-05T21:05:57Z","body":"Hello! I have such problem on fresh installation of last version of ticketit : \r\nwhen user try to open his ticket, or moderator try to open his ticket:\r\n\r\n https://scr.pics/111111.png_2016-07-05_23-10-32.png\r\n\r\nThe problem is in methods: isAssignedAgent and isTicketOwner, Ticket::find($id)->user->id  and Ticket::find($id)->agent->id returns false, but when I check it in artisan tinker and set $id manually, it returns correct user id (works fine). How to fix it?\r\n"},"comment":{"url":"https://api.github.com/repos/thekordy/ticketit/issues/comments/230603080","html_url":"https://github.com/thekordy/ticketit/issues/218#issuecomment-230603080","issue_url":"https://api.github.com/repos/thekordy/ticketit/issues/218","id":230603080,"user":{"login":"thekordy","id":11343048,"avatar_url":"https://avatars.githubusercontent.com/u/11343048?v=3","gravatar_id":"","url":"https://api.github.com/users/thekordy","html_url":"https://github.com/thekordy","followers_url":"https://api.github.com/users/thekordy/followers","following_url":"https://api.github.com/users/thekordy/following{/other_user}","gists_url":"https://api.github.com/users/thekordy/gists{/gist_id}","starred_url":"https://api.github.com/users/thekordy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thekordy/subscriptions","organizations_url":"https://api.github.com/users/thekordy/orgs","repos_url":"https://api.github.com/users/thekordy/repos","events_url":"https://api.github.com/users/thekordy/events{/privacy}","received_events_url":"https://api.github.com/users/thekordy/received_events","type":"User","site_admin":false},"created_at":"2016-07-05T21:05:57Z","updated_at":"2016-07-05T21:05:57Z","body":"Glade that fixed your issue, thank you for using Ticketit."}}
{"actor":{"display_login":"thekordy"}}