{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/16404","repository_url":"https://api.github.com/repos/laravel/framework","labels_url":"https://api.github.com/repos/laravel/framework/issues/16404/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/16404/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/16404/events","html_url":"https://github.com/laravel/framework/issues/16404","id":189144240,"number":16404,"title":"Updating JSON model with sub JSON objects ","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},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-11-14T15:39:03Z","updated_at":"2016-11-14T16:24:36Z","closed_at":null,"body":"- Laravel Version: v5.3.22\r\n- PHP Version: PHP 7.0.12-1+deb.sury.org~xenial+1 (cli) ( NTS )\r\n- Database Driver & Version: N/A\r\n\r\n### Description:\r\nWhen trying to update a JSON casted column , and using sub JSON objects will produce an error\r\n\r\n`{type: \"ErrorException\", message: \"Array to string conversion\",…}\r\nfile\r\n:\r\n\"/home/vagrant/Code/pm/vendor/laravel/framework/src/Illuminate/Support/Str.php\"\r\nline\r\n:\r\n289\r\nmessage\r\n:\r\n\"Array to string conversion\"\r\ntype\r\n:\r\n\"ErrorException\"`\r\n\r\n### Steps To Reproduce:\r\n  ```\r\n// Where `meta->tracking_numbers` are multiple JSON objects \r\n  $program->update($request->get(['meta->tracking_numbers']));\r\n```\r\n\r\n\r\n![screen shot 2016-11-14 at 10 37 24 am](https://cloud.githubusercontent.com/assets/2066668/20270764/6b4a3f54-aa56-11e6-9ebc-55adc2c4ab51.png)\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/laravel/framework/issues/comments/260383424","html_url":"https://github.com/laravel/framework/issues/16404#issuecomment-260383424","issue_url":"https://api.github.com/repos/laravel/framework/issues/16404","id":260383424,"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-11-14T16:24:36Z","updated_at":"2016-11-14T16:24:36Z","body":"Appreciate it~ "}}
{"actor":{"display_login":"lukepolo"}}