{"action":"created","issue":{"url":"https://api.github.com/repos/topclaudy/compoships/issues/16","repository_url":"https://api.github.com/repos/topclaudy/compoships","labels_url":"https://api.github.com/repos/topclaudy/compoships/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/topclaudy/compoships/issues/16/comments","events_url":"https://api.github.com/repos/topclaudy/compoships/issues/16/events","html_url":"https://github.com/topclaudy/compoships/issues/16","id":358020488,"node_id":"MDU6SXNzdWUzNTgwMjA0ODg=","number":16,"title":"self::has not working in model","user":{"login":"Vinze","id":1716574,"node_id":"MDQ6VXNlcjE3MTY1NzQ=","avatar_url":"https://avatars1.githubusercontent.com/u/1716574?v=4","gravatar_id":"","url":"https://api.github.com/users/Vinze","html_url":"https://github.com/Vinze","followers_url":"https://api.github.com/users/Vinze/followers","following_url":"https://api.github.com/users/Vinze/following{/other_user}","gists_url":"https://api.github.com/users/Vinze/gists{/gist_id}","starred_url":"https://api.github.com/users/Vinze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vinze/subscriptions","organizations_url":"https://api.github.com/users/Vinze/orgs","repos_url":"https://api.github.com/users/Vinze/repos","events_url":"https://api.github.com/users/Vinze/events{/privacy}","received_events_url":"https://api.github.com/users/Vinze/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-07T10:56:06Z","updated_at":"2018-09-07T12:51:07Z","closed_at":"2018-09-07T12:51:07Z","author_association":"NONE","body":"When querying relationship existence from within a model itself thats using the Compoships trait the `has()` function doesn't work. See the following example:\r\n\r\n```php\r\nclass Bookmark extends Model {\r\n\r\n    use \\Awobaz\\Compoships\\Compoships;\r\n\r\n    public static function folders() {\r\n        return self::has('product')\r\n            ->orderBy('folder')\r\n            ->groupBy('folder')\r\n            ->pluck('folder', 'folder');\r\n    }\r\n}\r\n```\r\n\r\nThis creates the following error: `Non-static method App\\Models\\Bookmark::has() should not be called statically`\r\n\r\nI'm using Laravel 5.5 and Compoships 1.0.8. "},"comment":{"url":"https://api.github.com/repos/topclaudy/compoships/issues/comments/419429429","html_url":"https://github.com/topclaudy/compoships/issues/16#issuecomment-419429429","issue_url":"https://api.github.com/repos/topclaudy/compoships/issues/16","id":419429429,"node_id":"MDEyOklzc3VlQ29tbWVudDQxOTQyOTQyOQ==","user":{"login":"topclaudy","id":1437237,"node_id":"MDQ6VXNlcjE0MzcyMzc=","avatar_url":"https://avatars2.githubusercontent.com/u/1437237?v=4","gravatar_id":"","url":"https://api.github.com/users/topclaudy","html_url":"https://github.com/topclaudy","followers_url":"https://api.github.com/users/topclaudy/followers","following_url":"https://api.github.com/users/topclaudy/following{/other_user}","gists_url":"https://api.github.com/users/topclaudy/gists{/gist_id}","starred_url":"https://api.github.com/users/topclaudy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/topclaudy/subscriptions","organizations_url":"https://api.github.com/users/topclaudy/orgs","repos_url":"https://api.github.com/users/topclaudy/repos","events_url":"https://api.github.com/users/topclaudy/events{/privacy}","received_events_url":"https://api.github.com/users/topclaudy/received_events","type":"User","site_admin":false},"created_at":"2018-09-07T12:51:07Z","updated_at":"2018-09-07T12:51:07Z","author_association":"OWNER","body":"Fixed in 1.0.9."}}
{"actor":{"display_login":"topclaudy"}}