{"action":"closed","issue":{"url":"https://api.github.com/repos/kodeine/laravel-meta/issues/7","labels_url":"https://api.github.com/repos/kodeine/laravel-meta/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/kodeine/laravel-meta/issues/7/comments","events_url":"https://api.github.com/repos/kodeine/laravel-meta/issues/7/events","html_url":"https://github.com/kodeine/laravel-meta/issues/7","id":69115257,"number":7,"title":"Get meta where key contains","user":{"login":"FourStacks","id":6280211,"avatar_url":"https://avatars.githubusercontent.com/u/6280211?v=3","gravatar_id":"","url":"https://api.github.com/users/FourStacks","html_url":"https://github.com/FourStacks","followers_url":"https://api.github.com/users/FourStacks/followers","following_url":"https://api.github.com/users/FourStacks/following{/other_user}","gists_url":"https://api.github.com/users/FourStacks/gists{/gist_id}","starred_url":"https://api.github.com/users/FourStacks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FourStacks/subscriptions","organizations_url":"https://api.github.com/users/FourStacks/orgs","repos_url":"https://api.github.com/users/FourStacks/repos","events_url":"https://api.github.com/users/FourStacks/events{/privacy}","received_events_url":"https://api.github.com/users/FourStacks/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-17T10:47:54Z","updated_at":"2015-09-11T15:38:29Z","closed_at":"2015-09-11T15:38:29Z","body":"First up, thanks very much for taking the time to develop and release this package - just started using it but it's looking like a very useful tool indeed.\r\n\r\nI was wondering if you had any plans to include a method that would allow a query to get all meta for an entity where the key contains a certain string?  Not sure if this might be considered a bit 'edgy' but I've run into a situation where I need to save meta data for a model where the individual pieces of metadata need to be unique yet must all relate to one another and should be able to be queried as a group.\r\n\r\nI'm dealing the the uniqueness by saving input (which by default is in an array) and changing the array keys to unique keys using uniqid() and a prefix e.g. \r\n\r\nlocation_mYr4nd0mIdent1fi3r\r\nlocation_4noth3rRand0mIden\r\n\r\nEach key value pair would then be saved as separate metadata but I'd like to be able to find them as a group by their shared prefix.\r\n\r\nI'll probably be cooking up a solution for my project anyway but thought I'd check to see if you had any plans for something similar.  If my solution can be made to fit the package then happy to do a PR if I have time and if you think it would be a useful addition?"}}