{"action":"created","issue":{"url":"https://api.github.com/repos/GeneaLabs/laravel-model-caching/issues/107","repository_url":"https://api.github.com/repos/GeneaLabs/laravel-model-caching","labels_url":"https://api.github.com/repos/GeneaLabs/laravel-model-caching/issues/107/labels{/name}","comments_url":"https://api.github.com/repos/GeneaLabs/laravel-model-caching/issues/107/comments","events_url":"https://api.github.com/repos/GeneaLabs/laravel-model-caching/issues/107/events","html_url":"https://github.com/GeneaLabs/laravel-model-caching/issues/107","id":309649407,"number":107,"title":"Not getting all model attributes on query ","user":{"login":"jetwes","id":1346373,"avatar_url":"https://avatars2.githubusercontent.com/u/1346373?v=4","gravatar_id":"","url":"https://api.github.com/users/jetwes","html_url":"https://github.com/jetwes","followers_url":"https://api.github.com/users/jetwes/followers","following_url":"https://api.github.com/users/jetwes/following{/other_user}","gists_url":"https://api.github.com/users/jetwes/gists{/gist_id}","starred_url":"https://api.github.com/users/jetwes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jetwes/subscriptions","organizations_url":"https://api.github.com/users/jetwes/orgs","repos_url":"https://api.github.com/users/jetwes/repos","events_url":"https://api.github.com/users/jetwes/events{/privacy}","received_events_url":"https://api.github.com/users/jetwes/received_events","type":"User","site_admin":false},"labels":[{"id":835156077,"url":"https://api.github.com/repos/GeneaLabs/laravel-model-caching/labels/Unconfirmed%20Bug","name":"Unconfirmed Bug","color":"f9d0c4","default":false}],"state":"open","locked":false,"assignee":{"login":"mikebronner","id":1791050,"avatar_url":"https://avatars0.githubusercontent.com/u/1791050?v=4","gravatar_id":"","url":"https://api.github.com/users/mikebronner","html_url":"https://github.com/mikebronner","followers_url":"https://api.github.com/users/mikebronner/followers","following_url":"https://api.github.com/users/mikebronner/following{/other_user}","gists_url":"https://api.github.com/users/mikebronner/gists{/gist_id}","starred_url":"https://api.github.com/users/mikebronner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikebronner/subscriptions","organizations_url":"https://api.github.com/users/mikebronner/orgs","repos_url":"https://api.github.com/users/mikebronner/repos","events_url":"https://api.github.com/users/mikebronner/events{/privacy}","received_events_url":"https://api.github.com/users/mikebronner/received_events","type":"User","site_admin":false},"assignees":[{"login":"mikebronner","id":1791050,"avatar_url":"https://avatars0.githubusercontent.com/u/1791050?v=4","gravatar_id":"","url":"https://api.github.com/users/mikebronner","html_url":"https://github.com/mikebronner","followers_url":"https://api.github.com/users/mikebronner/followers","following_url":"https://api.github.com/users/mikebronner/following{/other_user}","gists_url":"https://api.github.com/users/mikebronner/gists{/gist_id}","starred_url":"https://api.github.com/users/mikebronner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikebronner/subscriptions","organizations_url":"https://api.github.com/users/mikebronner/orgs","repos_url":"https://api.github.com/users/mikebronner/repos","events_url":"https://api.github.com/users/mikebronner/events{/privacy}","received_events_url":"https://api.github.com/users/mikebronner/received_events","type":"User","site_admin":false}],"milestone":null,"comments":8,"created_at":"2018-03-29T07:35:51Z","updated_at":"2018-05-04T01:33:36Z","closed_at":null,"author_association":"NONE","body":"Hi MIke,\r\n\r\nit's me again with a strange behaviour ;)\r\n\r\nIn a controller i am doing this:\r\n\r\n```\r\n $shop = Shop::where('id', '=', $request->get('shop_id'))->first();\r\n dd($shop);\r\n```\r\nUnfortunately i'm only getting one attribute back - not all like intended.\r\nIf i disable the cache i'm getting all attributes.\r\n```\r\n $shop = Shop::where('id', '=', $request->get('shop_id'))->disableModelCaching()->first();\r\n dd($shop);\r\n```\r\nSee the attached pictures.\r\n\r\nAny clue why this is happening?\r\n\r\nThx\r\nJens\r\n<img width=\"370\" alt=\"shop_enabled_cache\" src=\"https://user-images.githubusercontent.com/1346373/38075984-7a0b68f2-3334-11e8-81cf-ccd0edf4c72a.PNG\">\r\n<img width=\"373\" alt=\"shop_disabled_cache\" src=\"https://user-images.githubusercontent.com/1346373/38075985-7a270864-3334-11e8-99a6-c5853a9152e8.PNG\">\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/GeneaLabs/laravel-model-caching/issues/comments/386484957","html_url":"https://github.com/GeneaLabs/laravel-model-caching/issues/107#issuecomment-386484957","issue_url":"https://api.github.com/repos/GeneaLabs/laravel-model-caching/issues/107","id":386484957,"user":{"login":"mikebronner","id":1791050,"avatar_url":"https://avatars0.githubusercontent.com/u/1791050?v=4","gravatar_id":"","url":"https://api.github.com/users/mikebronner","html_url":"https://github.com/mikebronner","followers_url":"https://api.github.com/users/mikebronner/followers","following_url":"https://api.github.com/users/mikebronner/following{/other_user}","gists_url":"https://api.github.com/users/mikebronner/gists{/gist_id}","starred_url":"https://api.github.com/users/mikebronner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikebronner/subscriptions","organizations_url":"https://api.github.com/users/mikebronner/orgs","repos_url":"https://api.github.com/users/mikebronner/repos","events_url":"https://api.github.com/users/mikebronner/events{/privacy}","received_events_url":"https://api.github.com/users/mikebronner/received_events","type":"User","site_admin":false},"created_at":"2018-05-04T01:33:36Z","updated_at":"2018-05-04T01:33:36Z","author_association":"OWNER","body":"@shenjiayu Gotcha, thanks. In those cases it would probably help to provide your eloquent query that shows it working. :)"}}
{"actor":{"display_login":"mikebronner"}}