{"action":"created","issue":{"url":"https://api.github.com/repos/cybercog/laravel-eloquent-flag/issues/34","repository_url":"https://api.github.com/repos/cybercog/laravel-eloquent-flag","labels_url":"https://api.github.com/repos/cybercog/laravel-eloquent-flag/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/cybercog/laravel-eloquent-flag/issues/34/comments","events_url":"https://api.github.com/repos/cybercog/laravel-eloquent-flag/issues/34/events","html_url":"https://github.com/cybercog/laravel-eloquent-flag/issues/34","id":280769372,"node_id":"MDU6SXNzdWUyODA3NjkzNzI=","number":34,"title":"Remove force auto-applying global scopes","user":{"login":"antonkomarev","id":1849174,"node_id":"MDQ6VXNlcjE4NDkxNzQ=","avatar_url":"https://avatars0.githubusercontent.com/u/1849174?v=4","gravatar_id":"","url":"https://api.github.com/users/antonkomarev","html_url":"https://github.com/antonkomarev","followers_url":"https://api.github.com/users/antonkomarev/followers","following_url":"https://api.github.com/users/antonkomarev/following{/other_user}","gists_url":"https://api.github.com/users/antonkomarev/gists{/gist_id}","starred_url":"https://api.github.com/users/antonkomarev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antonkomarev/subscriptions","organizations_url":"https://api.github.com/users/antonkomarev/orgs","repos_url":"https://api.github.com/users/antonkomarev/repos","events_url":"https://api.github.com/users/antonkomarev/events{/privacy}","received_events_url":"https://api.github.com/users/antonkomarev/received_events","type":"User","site_admin":false},"labels":[{"id":449829556,"node_id":"MDU6TGFiZWw0NDk4Mjk1NTY=","url":"https://api.github.com/repos/cybercog/laravel-eloquent-flag/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-12-10T00:30:25Z","updated_at":"2018-12-28T11:57:22Z","closed_at":null,"author_association":"MEMBER","body":"After start using this package in different projects I've understood that has made wrong decision at the start.\r\n\r\nI've started to build classes with a lot of such methods to don't use auto apply and have more hand control:\r\n```php\r\npublic function shouldApplyPublishedAtScope()\r\n{\r\n    return false;\r\n}\r\n```\r\n\r\nI'm thinking to invert this behavior in next major version.\r\n\r\n*Maybe it is a good starting point to make configuration file for this package.*"},"comment":{"url":"https://api.github.com/repos/cybercog/laravel-eloquent-flag/issues/comments/450348276","html_url":"https://github.com/cybercog/laravel-eloquent-flag/issues/34#issuecomment-450348276","issue_url":"https://api.github.com/repos/cybercog/laravel-eloquent-flag/issues/34","id":450348276,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MDM0ODI3Ng==","user":{"login":"lon9man","id":10497794,"node_id":"MDQ6VXNlcjEwNDk3Nzk0","avatar_url":"https://avatars1.githubusercontent.com/u/10497794?v=4","gravatar_id":"","url":"https://api.github.com/users/lon9man","html_url":"https://github.com/lon9man","followers_url":"https://api.github.com/users/lon9man/followers","following_url":"https://api.github.com/users/lon9man/following{/other_user}","gists_url":"https://api.github.com/users/lon9man/gists{/gist_id}","starred_url":"https://api.github.com/users/lon9man/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lon9man/subscriptions","organizations_url":"https://api.github.com/users/lon9man/orgs","repos_url":"https://api.github.com/users/lon9man/repos","events_url":"https://api.github.com/users/lon9man/events{/privacy}","received_events_url":"https://api.github.com/users/lon9man/received_events","type":"User","site_admin":false},"created_at":"2018-12-28T11:57:22Z","updated_at":"2018-12-28T11:57:22Z","author_association":"NONE","body":"i thought about potential use case:\r\nuser has boolean setting (which we put in session) saying **include_archive** and ONLY when it equals to **true** then we should apply global query scope **archieved_at**.\r\n\r\nis this case similar to your thoughts in the first post?"}}
{"actor":{"display_login":"lon9man"}}