{"action":"created","issue":{"url":"https://api.github.com/repos/LaravelCollective/html/issues/64","labels_url":"https://api.github.com/repos/LaravelCollective/html/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/LaravelCollective/html/issues/64/comments","events_url":"https://api.github.com/repos/LaravelCollective/html/issues/64/events","html_url":"https://github.com/LaravelCollective/html/issues/64","id":97724733,"number":64,"title":"Error with form model binding on a field named 'visible'","user":{"login":"imade-nl","id":852130,"avatar_url":"https://avatars.githubusercontent.com/u/852130?v=3","gravatar_id":"","url":"https://api.github.com/users/imade-nl","html_url":"https://github.com/imade-nl","followers_url":"https://api.github.com/users/imade-nl/followers","following_url":"https://api.github.com/users/imade-nl/following{/other_user}","gists_url":"https://api.github.com/users/imade-nl/gists{/gist_id}","starred_url":"https://api.github.com/users/imade-nl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imade-nl/subscriptions","organizations_url":"https://api.github.com/users/imade-nl/orgs","repos_url":"https://api.github.com/users/imade-nl/repos","events_url":"https://api.github.com/users/imade-nl/events{/privacy}","received_events_url":"https://api.github.com/users/imade-nl/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-28T14:47:30Z","updated_at":"2015-09-02T17:03:43Z","closed_at":"2015-09-02T17:03:43Z","body":"When I hava a table with two columns `active` tinyint(1) and `visible` tinyint(1) and try to populate a form with model binding the `active` field displays correctly and the `visible` field stays empty.\r\n\r\nWhen I changed out `{!! Form::checkbox('visible', true) !!}` for `{!!  Form::text('visible'']) !!}` I get an error:` ErrorException in helpers.php line 454: htmlentities() expects parameter 1 to be string, array given` formed in:  `HtmlBuilder->attributes(array('class' => 'form-control', 'required', 'name' => 'visible', 'type' => 'text', 'value' => array(), 'id' => null)) in FormBuilder.php line 248`\r\n\r\nI think it might use the protected property of the Eloquent Model?\r\n\r\nThe workaround I used for now was to cast the Eloquent result to an array and then back to an object:\r\n```\r\n$user = $User::find(1);\r\n$user = (object) $user->toArray();\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/LaravelCollective/html/issues/comments/137172092","html_url":"https://github.com/LaravelCollective/html/issues/64#issuecomment-137172092","issue_url":"https://api.github.com/repos/LaravelCollective/html/issues/64","id":137172092,"user":{"login":"adamgoose","id":611068,"avatar_url":"https://avatars.githubusercontent.com/u/611068?v=3","gravatar_id":"","url":"https://api.github.com/users/adamgoose","html_url":"https://github.com/adamgoose","followers_url":"https://api.github.com/users/adamgoose/followers","following_url":"https://api.github.com/users/adamgoose/following{/other_user}","gists_url":"https://api.github.com/users/adamgoose/gists{/gist_id}","starred_url":"https://api.github.com/users/adamgoose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamgoose/subscriptions","organizations_url":"https://api.github.com/users/adamgoose/orgs","repos_url":"https://api.github.com/users/adamgoose/repos","events_url":"https://api.github.com/users/adamgoose/events{/privacy}","received_events_url":"https://api.github.com/users/adamgoose/received_events","type":"User","site_admin":false},"created_at":"2015-09-02T17:03:43Z","updated_at":"2015-09-02T17:03:43Z","body":"Your examples have a few typos. Double check the docs and make sure you're calling the methods correctly. This has always worked fine for me."}}