{"action":"created","issue":{"url":"https://api.github.com/repos/IsraelOrtuno/Eavquent/issues/36","repository_url":"https://api.github.com/repos/IsraelOrtuno/Eavquent","labels_url":"https://api.github.com/repos/IsraelOrtuno/Eavquent/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/IsraelOrtuno/Eavquent/issues/36/comments","events_url":"https://api.github.com/repos/IsraelOrtuno/Eavquent/issues/36/events","html_url":"https://github.com/IsraelOrtuno/Eavquent/issues/36","id":149557468,"number":36,"title":"Interface 'Illuminate\\Database\\Eloquent\\Scope' not found","user":{"login":"codercms","id":4526911,"avatar_url":"https://avatars.githubusercontent.com/u/4526911?v=3","gravatar_id":"","url":"https://api.github.com/users/codercms","html_url":"https://github.com/codercms","followers_url":"https://api.github.com/users/codercms/followers","following_url":"https://api.github.com/users/codercms/following{/other_user}","gists_url":"https://api.github.com/users/codercms/gists{/gist_id}","starred_url":"https://api.github.com/users/codercms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codercms/subscriptions","organizations_url":"https://api.github.com/users/codercms/orgs","repos_url":"https://api.github.com/users/codercms/repos","events_url":"https://api.github.com/users/codercms/events{/privacy}","received_events_url":"https://api.github.com/users/codercms/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-04-19T19:26:51Z","updated_at":"2016-04-20T09:16:50Z","closed_at":null,"body":"Hey, i'm using the latest Lumen. And created model:\r\n```php\r\n<?php\r\nnamespace App\\Models;\r\n\r\nuse Devio\\Eavquent\\Eavquent;\r\nuse Illuminate\\Database\\Eloquent\\Model;\r\n\r\nclass Books extends Model\r\n{\r\n    use Eavquent;\r\n\r\n    // Eager loading all the registered attributes\r\n    protected $with = ['eav'];\r\n}\r\n```\r\n\r\nAnd added the following route:\r\n```php\r\n$app->get('/books', function() {\r\n    return \\App\\Models\\Books::all();\r\n});\r\n```\r\n\r\nAnd when i trying to access `/books` i've got - `\r\nWhoops, looks like something went wrong.\r\nFatalErrorException in EagerLoadScope.php line 10:\r\nInterface 'Illuminate\\Database\\Eloquent\\Scope' not found\r\n`\r\n\r\nIs there any way to fix this problem?"},"comment":{"url":"https://api.github.com/repos/IsraelOrtuno/Eavquent/issues/comments/212342495","html_url":"https://github.com/IsraelOrtuno/Eavquent/issues/36#issuecomment-212342495","issue_url":"https://api.github.com/repos/IsraelOrtuno/Eavquent/issues/36","id":212342495,"user":{"login":"codercms","id":4526911,"avatar_url":"https://avatars.githubusercontent.com/u/4526911?v=3","gravatar_id":"","url":"https://api.github.com/users/codercms","html_url":"https://github.com/codercms","followers_url":"https://api.github.com/users/codercms/followers","following_url":"https://api.github.com/users/codercms/following{/other_user}","gists_url":"https://api.github.com/users/codercms/gists{/gist_id}","starred_url":"https://api.github.com/users/codercms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codercms/subscriptions","organizations_url":"https://api.github.com/users/codercms/orgs","repos_url":"https://api.github.com/users/codercms/repos","events_url":"https://api.github.com/users/codercms/events{/privacy}","received_events_url":"https://api.github.com/users/codercms/received_events","type":"User","site_admin":false},"created_at":"2016-04-20T09:16:50Z","updated_at":"2016-04-20T09:16:50Z","body":"@IsraelOrtuno here is ScopeInterface\r\n\r\n![image](https://cloud.githubusercontent.com/assets/4526911/14669463/ab0cb9a4-06f1-11e6-8d50-77ec18bc3b4f.png)\r\n"}}