{"action":"created","issue":{"url":"https://api.github.com/repos/LaravelCollective/html/issues/122","labels_url":"https://api.github.com/repos/LaravelCollective/html/issues/122/labels{/name}","comments_url":"https://api.github.com/repos/LaravelCollective/html/issues/122/comments","events_url":"https://api.github.com/repos/LaravelCollective/html/issues/122/events","html_url":"https://github.com/LaravelCollective/html/issues/122","id":119726219,"number":122,"title":"FormBuilder value as array issue","user":{"login":"andkom","id":150830,"avatar_url":"https://avatars.githubusercontent.com/u/150830?v=3","gravatar_id":"","url":"https://api.github.com/users/andkom","html_url":"https://github.com/andkom","followers_url":"https://api.github.com/users/andkom/followers","following_url":"https://api.github.com/users/andkom/following{/other_user}","gists_url":"https://api.github.com/users/andkom/gists{/gist_id}","starred_url":"https://api.github.com/users/andkom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andkom/subscriptions","organizations_url":"https://api.github.com/users/andkom/orgs","repos_url":"https://api.github.com/users/andkom/repos","events_url":"https://api.github.com/users/andkom/events{/privacy}","received_events_url":"https://api.github.com/users/andkom/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-01T14:20:15Z","updated_at":"2015-12-16T13:30:53Z","closed_at":null,"body":"When I submit the following form:\r\n\r\n```\r\n<form>\r\n...\r\n        {!! Form::text('test[]') !!}\r\n...\r\n</form>\r\n```\r\n\r\nI get the following error:\r\n\r\n```\r\nErrorException in helpers.php line 469: htmlentities() expects parameter 1 to be string, array given \r\n```\r\n\r\nStacktrace:\r\n\r\n```\r\n1. in helpers.php line 469\r\n2. at HandleExceptions->handleError('2', 'htmlentities() expects parameter 1 to be string, array given', '/xxx/vendor/laravel/framework/src/Illuminate/Support/helpers.php', '469', array('value' => array('asdf')))\r\n3. at htmlentities(array('asdf'), '3', 'UTF-8', false) in helpers.php line 469\r\n4. at e(array('asdf')) in HtmlBuilder.php line 410\r\n5. at HtmlBuilder->attributeElement('value', array('asdf')) in HtmlBuilder.php line 382\r\n6. at HtmlBuilder->attributes(array('name' => 'test[]', 'type' => 'text', 'value' => array('asdf'), 'id' => null)) in FormBuilder.php line 258\r\n7. at FormBuilder->input('text', 'test[]', null, array()) in FormBuilder.php line 272\r\n8. at FormBuilder->text('test[]') in Facade.php line 216\r\n9. at Facade::__callStatic('text', array('test[]')) in 3da9884bcf07895aaafc9a097bb0ec7d line 23\r\n10. at FormFacade::text('test[]') in 3da9884bcf07895aaafc9a097bb0ec7d line 23\r\n```\r\n\r\nSolution:\r\n\r\nfunction getValueAttribute() in FormBuilder.php:248 should return string"},"comment":{"url":"https://api.github.com/repos/LaravelCollective/html/issues/comments/165106313","html_url":"https://github.com/LaravelCollective/html/issues/122#issuecomment-165106313","issue_url":"https://api.github.com/repos/LaravelCollective/html/issues/122","id":165106313,"user":{"login":"Decadence","id":1434668,"avatar_url":"https://avatars.githubusercontent.com/u/1434668?v=3","gravatar_id":"","url":"https://api.github.com/users/Decadence","html_url":"https://github.com/Decadence","followers_url":"https://api.github.com/users/Decadence/followers","following_url":"https://api.github.com/users/Decadence/following{/other_user}","gists_url":"https://api.github.com/users/Decadence/gists{/gist_id}","starred_url":"https://api.github.com/users/Decadence/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Decadence/subscriptions","organizations_url":"https://api.github.com/users/Decadence/orgs","repos_url":"https://api.github.com/users/Decadence/repos","events_url":"https://api.github.com/users/Decadence/events{/privacy}","received_events_url":"https://api.github.com/users/Decadence/received_events","type":"User","site_admin":false},"created_at":"2015-12-16T13:30:53Z","updated_at":"2015-12-16T13:30:53Z","body":"The same for me. I was looking for support of array notation in this module and found this issue.\r\nCan you fix it to support names with [] brackets? Don't forget about implicit incrementing indexes in case of empty brackets.\r\n\r\nSo:\r\ninput name=\"test[]\"\r\ninput name=\"test[]\"\r\n\r\nwill be test[0], test[1] on server."}}