{"action":"created","issue":{"url":"https://api.github.com/repos/LaravelCollective/html/issues/55","labels_url":"https://api.github.com/repos/LaravelCollective/html/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/LaravelCollective/html/issues/55/comments","events_url":"https://api.github.com/repos/LaravelCollective/html/issues/55/events","html_url":"https://github.com/LaravelCollective/html/issues/55","id":90993869,"number":55,"title":"Select, relationships and lists","user":{"login":"pacoorozco","id":2443200,"avatar_url":"https://avatars.githubusercontent.com/u/2443200?v=3","gravatar_id":"","url":"https://api.github.com/users/pacoorozco","html_url":"https://github.com/pacoorozco","followers_url":"https://api.github.com/users/pacoorozco/followers","following_url":"https://api.github.com/users/pacoorozco/following{/other_user}","gists_url":"https://api.github.com/users/pacoorozco/gists{/gist_id}","starred_url":"https://api.github.com/users/pacoorozco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pacoorozco/subscriptions","organizations_url":"https://api.github.com/users/pacoorozco/orgs","repos_url":"https://api.github.com/users/pacoorozco/repos","events_url":"https://api.github.com/users/pacoorozco/events{/privacy}","received_events_url":"https://api.github.com/users/pacoorozco/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-25T15:20:50Z","updated_at":"2015-06-25T18:21:34Z","closed_at":"2015-06-25T18:21:34Z","body":"I'm using the FormBuilder and have a select named the same thing as one of my model's relationships (a many-to-many relationship), but when using form model binding, it ignores any attempts I make to manually override the status of whether it's selected or not.\r\n\r\n    {!! Form::select('usergroups[]', $groups, $user->groups->lists('id'), array('multiple' => 'multiple') !!}\r\n\r\nDoing this, I would expect it a select with some selected values, depending my relationship piece. Instead, no select is selected.\r\n\r\nThis is User model relationship:\r\n\r\n    public function groups()\r\n    {\r\n        return $this->belongsToMany('SSHAM\\Usergroup');\r\n    }\r\n\r\nAnd this my controller wich calls the view:\r\n\r\n    public function edit(User $user)\r\n    {\r\n        // Get all existing user groups\r\n        $groups = Usergroup::lists('name', 'id');\r\n        return view('user.edit', compact('user', 'groups'));\r\n    }\r\n\r\nAnd my view:\r\n\r\n    {!! Form::model($user, ['route' => ['users.update', $user->id], 'method' => 'put']) !!}\r\n    {!! Form::select('usergroups[]', $groups, $user->groups->lists('id'), array('multiple' => 'multiple') !!}\r\n    {!! Form::close() !!}\r\n\r\n\r\n\r\nAm I missing something about how to get this to work or have I stumbled across an issue?\r\n"},"comment":{"url":"https://api.github.com/repos/LaravelCollective/html/issues/comments/115353249","html_url":"https://github.com/LaravelCollective/html/issues/55#issuecomment-115353249","issue_url":"https://api.github.com/repos/LaravelCollective/html/issues/55","id":115353249,"user":{"login":"pacoorozco","id":2443200,"avatar_url":"https://avatars.githubusercontent.com/u/2443200?v=3","gravatar_id":"","url":"https://api.github.com/users/pacoorozco","html_url":"https://github.com/pacoorozco","followers_url":"https://api.github.com/users/pacoorozco/followers","following_url":"https://api.github.com/users/pacoorozco/following{/other_user}","gists_url":"https://api.github.com/users/pacoorozco/gists{/gist_id}","starred_url":"https://api.github.com/users/pacoorozco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pacoorozco/subscriptions","organizations_url":"https://api.github.com/users/pacoorozco/orgs","repos_url":"https://api.github.com/users/pacoorozco/repos","events_url":"https://api.github.com/users/pacoorozco/events{/privacy}","received_events_url":"https://api.github.com/users/pacoorozco/received_events","type":"User","site_admin":false},"created_at":"2015-06-25T18:21:34Z","updated_at":"2015-06-25T18:21:34Z","body":"@tshafer It works great, thanks for your support I haven't see this change on release notes from 5.0. :smile: "}}