{"action":"created","issue":{"url":"https://api.github.com/repos/lukepolo/laracart/issues/56","labels_url":"https://api.github.com/repos/lukepolo/laracart/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/lukepolo/laracart/issues/56/comments","events_url":"https://api.github.com/repos/lukepolo/laracart/issues/56/events","html_url":"https://github.com/lukepolo/laracart/issues/56","id":127616145,"number":56,"title":"How to get itemHash?","user":{"login":"Cannonb4ll","id":3110750,"avatar_url":"https://avatars.githubusercontent.com/u/3110750?v=3","gravatar_id":"","url":"https://api.github.com/users/Cannonb4ll","html_url":"https://github.com/Cannonb4ll","followers_url":"https://api.github.com/users/Cannonb4ll/followers","following_url":"https://api.github.com/users/Cannonb4ll/following{/other_user}","gists_url":"https://api.github.com/users/Cannonb4ll/gists{/gist_id}","starred_url":"https://api.github.com/users/Cannonb4ll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cannonb4ll/subscriptions","organizations_url":"https://api.github.com/users/Cannonb4ll/orgs","repos_url":"https://api.github.com/users/Cannonb4ll/repos","events_url":"https://api.github.com/users/Cannonb4ll/events{/privacy}","received_events_url":"https://api.github.com/users/Cannonb4ll/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-01-20T06:36:11Z","updated_at":"2016-01-20T21:17:23Z","closed_at":"2016-01-20T21:05:06Z","body":"Whenever I do like this:\r\n\r\n    $item = LaraCart::add(1, 'Burger', 5, 2.00, [\r\n        // Notice this is an array of arrays,\r\n        // this allows us to further expand the cart functions to the options\r\n        [\r\n            'Description' => 'Bacon',\r\n            'Price' => 1.00\r\n        ]\r\n    ]);\r\n\r\nAnd I dump the $item, I see a itemHash, but how do I get this hash? $item->itemHash; returns null.\r\n\r\nI would like to add an item to my cart and afterwards add a option to this item if a certain condition is met."},"comment":{"url":"https://api.github.com/repos/lukepolo/laracart/issues/comments/173361794","html_url":"https://github.com/lukepolo/laracart/issues/56#issuecomment-173361794","issue_url":"https://api.github.com/repos/lukepolo/laracart/issues/56","id":173361794,"user":{"login":"lukepolo","id":2066668,"avatar_url":"https://avatars.githubusercontent.com/u/2066668?v=3","gravatar_id":"","url":"https://api.github.com/users/lukepolo","html_url":"https://github.com/lukepolo","followers_url":"https://api.github.com/users/lukepolo/followers","following_url":"https://api.github.com/users/lukepolo/following{/other_user}","gists_url":"https://api.github.com/users/lukepolo/gists{/gist_id}","starred_url":"https://api.github.com/users/lukepolo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukepolo/subscriptions","organizations_url":"https://api.github.com/users/lukepolo/orgs","repos_url":"https://api.github.com/users/lukepolo/repos","events_url":"https://api.github.com/users/lukepolo/events{/privacy}","received_events_url":"https://api.github.com/users/lukepolo/received_events","type":"User","site_admin":false},"created_at":"2016-01-20T21:17:23Z","updated_at":"2016-01-20T21:17:23Z","body":"Updated, let me know if you have any other suggestions"}}