{"action":"created","issue":{"url":"https://api.github.com/repos/juliobitencourt/laravel-cart/issues/5","labels_url":"https://api.github.com/repos/juliobitencourt/laravel-cart/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/juliobitencourt/laravel-cart/issues/5/comments","events_url":"https://api.github.com/repos/juliobitencourt/laravel-cart/issues/5/events","html_url":"https://github.com/juliobitencourt/laravel-cart/issues/5","id":96905373,"number":5,"title":"When I enter a negative quantity to update, I expect the item to be deleted","user":{"login":"eneskaya","id":964419,"avatar_url":"https://avatars.githubusercontent.com/u/964419?v=3","gravatar_id":"","url":"https://api.github.com/users/eneskaya","html_url":"https://github.com/eneskaya","followers_url":"https://api.github.com/users/eneskaya/followers","following_url":"https://api.github.com/users/eneskaya/following{/other_user}","gists_url":"https://api.github.com/users/eneskaya/gists{/gist_id}","starred_url":"https://api.github.com/users/eneskaya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eneskaya/subscriptions","organizations_url":"https://api.github.com/users/eneskaya/orgs","repos_url":"https://api.github.com/users/eneskaya/repos","events_url":"https://api.github.com/users/eneskaya/events{/privacy}","received_events_url":"https://api.github.com/users/eneskaya/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-23T21:05:42Z","updated_at":"2015-10-10T17:43:32Z","closed_at":"2015-10-10T17:43:32Z","body":"... right now the quantity is set to negative numbers. I think this should not be expected behaviour."},"comment":{"url":"https://api.github.com/repos/juliobitencourt/laravel-cart/issues/comments/147112105","html_url":"https://github.com/juliobitencourt/laravel-cart/issues/5#issuecomment-147112105","issue_url":"https://api.github.com/repos/juliobitencourt/laravel-cart/issues/5","id":147112105,"user":{"login":"juliobitencourt","id":676323,"avatar_url":"https://avatars.githubusercontent.com/u/676323?v=3","gravatar_id":"","url":"https://api.github.com/users/juliobitencourt","html_url":"https://github.com/juliobitencourt","followers_url":"https://api.github.com/users/juliobitencourt/followers","following_url":"https://api.github.com/users/juliobitencourt/following{/other_user}","gists_url":"https://api.github.com/users/juliobitencourt/gists{/gist_id}","starred_url":"https://api.github.com/users/juliobitencourt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juliobitencourt/subscriptions","organizations_url":"https://api.github.com/users/juliobitencourt/orgs","repos_url":"https://api.github.com/users/juliobitencourt/repos","events_url":"https://api.github.com/users/juliobitencourt/events{/privacy}","received_events_url":"https://api.github.com/users/juliobitencourt/received_events","type":"User","site_admin":false},"created_at":"2015-10-10T17:43:32Z","updated_at":"2015-10-10T17:43:32Z","body":"Fixed. The negative numbers now throws an InvalidArgumentException\r\n\r\nhttps://github.com/juliobitencourt/laravel-cart/commit/46c6687efa789700a3fb4335dfb5718b7f963ab7"}}