{"action":"created","issue":{"url":"https://api.github.com/repos/Nayjest/Grids/issues/107","labels_url":"https://api.github.com/repos/Nayjest/Grids/issues/107/labels{/name}","comments_url":"https://api.github.com/repos/Nayjest/Grids/issues/107/comments","events_url":"https://api.github.com/repos/Nayjest/Grids/issues/107/events","html_url":"https://github.com/Nayjest/Grids/pull/107","id":126606701,"number":107,"title":"Adds MultiSelectFilter","user":{"login":"imerr","id":1426904,"avatar_url":"https://avatars.githubusercontent.com/u/1426904?v=3","gravatar_id":"","url":"https://api.github.com/users/imerr","html_url":"https://github.com/imerr","followers_url":"https://api.github.com/users/imerr/followers","following_url":"https://api.github.com/users/imerr/following{/other_user}","gists_url":"https://api.github.com/users/imerr/gists{/gist_id}","starred_url":"https://api.github.com/users/imerr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imerr/subscriptions","organizations_url":"https://api.github.com/users/imerr/orgs","repos_url":"https://api.github.com/users/imerr/repos","events_url":"https://api.github.com/users/imerr/events{/privacy}","received_events_url":"https://api.github.com/users/imerr/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-01-14T08:47:25Z","updated_at":"2016-01-15T13:38:33Z","closed_at":"2016-01-15T13:19:04Z","pull_request":{"url":"https://api.github.com/repos/Nayjest/Grids/pulls/107","html_url":"https://github.com/Nayjest/Grids/pull/107","diff_url":"https://github.com/Nayjest/Grids/pull/107.diff","patch_url":"https://github.com/Nayjest/Grids/pull/107.patch"},"body":"This adds a filter which creates a select with multiple options ([like so](http://share.dl.je/2016-01-14_09-30-50_YQ2qrTBmsx.png))\r\n\r\nUsage:\r\n\r\n```php\r\n// Query for this, since I do a join for the roles would be something like this\r\n// (new User)->newQuery()->join('role_user', 'users.id', '=', 'user_id')->groupBy('users.id');\r\n            (new FieldConfig)\r\n                ->setName('roles')\r\n                ->setLabel(trans('validation.attributes.roles'))\r\n                ->addFilter(\r\n                    (new MultiSelectFilterConfig)\r\n                        ->setName('role_id')\r\n                        ->setOptions(Role::lists('name', 'id')->all())\r\n                )\r\n```\r\n\r\nI havent tested the dbal implementation of the IN operator. \r\nFeedback is definitely welcome\r\n"},"comment":{"url":"https://api.github.com/repos/Nayjest/Grids/issues/comments/171963603","html_url":"https://github.com/Nayjest/Grids/pull/107#issuecomment-171963603","issue_url":"https://api.github.com/repos/Nayjest/Grids/issues/107","id":171963603,"user":{"login":"Nayjest","id":153999,"avatar_url":"https://avatars.githubusercontent.com/u/153999?v=3","gravatar_id":"","url":"https://api.github.com/users/Nayjest","html_url":"https://github.com/Nayjest","followers_url":"https://api.github.com/users/Nayjest/followers","following_url":"https://api.github.com/users/Nayjest/following{/other_user}","gists_url":"https://api.github.com/users/Nayjest/gists{/gist_id}","starred_url":"https://api.github.com/users/Nayjest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nayjest/subscriptions","organizations_url":"https://api.github.com/users/Nayjest/orgs","repos_url":"https://api.github.com/users/Nayjest/repos","events_url":"https://api.github.com/users/Nayjest/events{/privacy}","received_events_url":"https://api.github.com/users/Nayjest/received_events","type":"User","site_admin":false},"created_at":"2016-01-15T13:38:33Z","updated_at":"2016-01-15T13:38:33Z","body":"Released in [grids 1.1.0](https://github.com/Nayjest/Grids/releases/tag/v1.1.0)"}}