{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/scout/issues/27","repository_url":"https://api.github.com/repos/laravel/scout","labels_url":"https://api.github.com/repos/laravel/scout/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/laravel/scout/issues/27/comments","events_url":"https://api.github.com/repos/laravel/scout/issues/27/events","html_url":"https://github.com/laravel/scout/issues/27","id":172324250,"number":27,"title":"Error when performing a batch import","user":{"login":"harrygr","id":5128200,"avatar_url":"https://avatars.githubusercontent.com/u/5128200?v=3","gravatar_id":"","url":"https://api.github.com/users/harrygr","html_url":"https://github.com/harrygr","followers_url":"https://api.github.com/users/harrygr/followers","following_url":"https://api.github.com/users/harrygr/following{/other_user}","gists_url":"https://api.github.com/users/harrygr/gists{/gist_id}","starred_url":"https://api.github.com/users/harrygr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harrygr/subscriptions","organizations_url":"https://api.github.com/users/harrygr/orgs","repos_url":"https://api.github.com/users/harrygr/repos","events_url":"https://api.github.com/users/harrygr/events{/privacy}","received_events_url":"https://api.github.com/users/harrygr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-08-21T14:43:41Z","updated_at":"2016-08-21T20:19:59Z","closed_at":null,"body":"When trying to perform a batch import (e.g. `php artisan scout:import \"App\\Post\"`) the following error is thrown\r\n\r\n> Symfony\\Component\\Debug\\Exception\\FatalThrowableError: Type error: Argument 1 passed to Laravel\\Scout\\SearchableScope::Laravel\\Scout\\{closure}() must be an instance of Laravel\\Scout\\Builder, instance of Illuminate\\Database\\Eloquent\\Builder given in /home/vagrant/samarkand-web/vendor/laravel/scout/src/SearchableScope.php:32"},"comment":{"url":"https://api.github.com/repos/laravel/scout/issues/comments/241279434","html_url":"https://github.com/laravel/scout/issues/27#issuecomment-241279434","issue_url":"https://api.github.com/repos/laravel/scout/issues/27","id":241279434,"user":{"login":"harrygr","id":5128200,"avatar_url":"https://avatars.githubusercontent.com/u/5128200?v=3","gravatar_id":"","url":"https://api.github.com/users/harrygr","html_url":"https://github.com/harrygr","followers_url":"https://api.github.com/users/harrygr/followers","following_url":"https://api.github.com/users/harrygr/following{/other_user}","gists_url":"https://api.github.com/users/harrygr/gists{/gist_id}","starred_url":"https://api.github.com/users/harrygr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harrygr/subscriptions","organizations_url":"https://api.github.com/users/harrygr/orgs","repos_url":"https://api.github.com/users/harrygr/repos","events_url":"https://api.github.com/users/harrygr/events{/privacy}","received_events_url":"https://api.github.com/users/harrygr/received_events","type":"User","site_admin":false},"created_at":"2016-08-21T20:19:59Z","updated_at":"2016-08-21T20:19:59Z","body":"Yes, here is the relevant code:\r\n\r\n```php\r\n//...\r\nuse Laravel\\Scout\\Searchable;\r\n\r\nclass Product extends Model\r\n{\r\n    use Searchable;\r\n\r\n//...\r\n```"}}
{"actor":{"display_login":"harrygr"}}