{"action":"created","issue":{"url":"https://api.github.com/repos/prettus/l5-repository/issues/47","labels_url":"https://api.github.com/repos/prettus/l5-repository/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/prettus/l5-repository/issues/47/comments","events_url":"https://api.github.com/repos/prettus/l5-repository/issues/47/events","html_url":"https://github.com/prettus/l5-repository/issues/47","id":90660046,"number":47,"title":"SoftDelete conditions bypassed via OR-clauses when multiple fields in fieldSearchable","user":{"login":"LordHamwich","id":10922042,"avatar_url":"https://avatars.githubusercontent.com/u/10922042?v=3","gravatar_id":"","url":"https://api.github.com/users/LordHamwich","html_url":"https://github.com/LordHamwich","followers_url":"https://api.github.com/users/LordHamwich/followers","following_url":"https://api.github.com/users/LordHamwich/following{/other_user}","gists_url":"https://api.github.com/users/LordHamwich/gists{/gist_id}","starred_url":"https://api.github.com/users/LordHamwich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LordHamwich/subscriptions","organizations_url":"https://api.github.com/users/LordHamwich/orgs","repos_url":"https://api.github.com/users/LordHamwich/repos","events_url":"https://api.github.com/users/LordHamwich/events{/privacy}","received_events_url":"https://api.github.com/users/LordHamwich/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-24T12:21:01Z","updated_at":"2015-06-29T06:05:07Z","closed_at":"2015-06-27T06:02:03Z","body":"When using multiple fields in repository's $fieldSearchable, softDelete-conditions do not work.\r\n\r\nThe cause is fairly obvious. Example of somewhat broken scenario:\r\n\r\n$fieldSearchable = ['name', 'email'];\r\n\r\nSELECT id, name, email FROM registered_users WHERE deleted_at IS NULL AND name LIKE '%.com%' OR email LIKE '%.com%';\r\n\r\nIf the keyword hits any field after the first OR in the query, deleted_at IS NULL -condition (which is always the first condition in any Eloquent-based query) doesn't really do anything."},"comment":{"url":"https://api.github.com/repos/prettus/l5-repository/issues/comments/116460245","html_url":"https://github.com/prettus/l5-repository/issues/47#issuecomment-116460245","issue_url":"https://api.github.com/repos/prettus/l5-repository/issues/47","id":116460245,"user":{"login":"LordHamwich","id":10922042,"avatar_url":"https://avatars.githubusercontent.com/u/10922042?v=3","gravatar_id":"","url":"https://api.github.com/users/LordHamwich","html_url":"https://github.com/LordHamwich","followers_url":"https://api.github.com/users/LordHamwich/followers","following_url":"https://api.github.com/users/LordHamwich/following{/other_user}","gists_url":"https://api.github.com/users/LordHamwich/gists{/gist_id}","starred_url":"https://api.github.com/users/LordHamwich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LordHamwich/subscriptions","organizations_url":"https://api.github.com/users/LordHamwich/orgs","repos_url":"https://api.github.com/users/LordHamwich/repos","events_url":"https://api.github.com/users/LordHamwich/events{/privacy}","received_events_url":"https://api.github.com/users/LordHamwich/received_events","type":"User","site_admin":false},"created_at":"2015-06-29T06:05:07Z","updated_at":"2015-06-29T06:05:07Z","body":"Thank you, we really appreciate your quick response; this is essential package in our project. Kudos!"}}