{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/scout/issues/100","repository_url":"https://api.github.com/repos/laravel/scout","labels_url":"https://api.github.com/repos/laravel/scout/issues/100/labels{/name}","comments_url":"https://api.github.com/repos/laravel/scout/issues/100/comments","events_url":"https://api.github.com/repos/laravel/scout/issues/100/events","html_url":"https://github.com/laravel/scout/issues/100","id":182480996,"number":100,"title":"Call `scout:import` in controller: There are no commands defined in the \"scout\" namespace.","user":{"login":"windows1087","id":12829228,"avatar_url":"https://avatars.githubusercontent.com/u/12829228?v=3","gravatar_id":"","url":"https://api.github.com/users/windows1087","html_url":"https://github.com/windows1087","followers_url":"https://api.github.com/users/windows1087/followers","following_url":"https://api.github.com/users/windows1087/following{/other_user}","gists_url":"https://api.github.com/users/windows1087/gists{/gist_id}","starred_url":"https://api.github.com/users/windows1087/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/windows1087/subscriptions","organizations_url":"https://api.github.com/users/windows1087/orgs","repos_url":"https://api.github.com/users/windows1087/repos","events_url":"https://api.github.com/users/windows1087/events{/privacy}","received_events_url":"https://api.github.com/users/windows1087/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-12T09:44:30Z","updated_at":"2017-02-22T10:11:17Z","closed_at":null,"body":"If i run\n\n```\nArtisan::call('scout:import')\n```\n\nin an Controller or route closure, following error came:\n\n```\nCommandNotFoundException in Application.php line 490: There are no commands defined in the \"scout\" namespace.\n```\n\nThe command works great in the CLI, but not in an controller.\n"},"comment":{"url":"https://api.github.com/repos/laravel/scout/issues/comments/281625875","html_url":"https://github.com/laravel/scout/issues/100#issuecomment-281625875","issue_url":"https://api.github.com/repos/laravel/scout/issues/100","id":281625875,"user":{"login":"MikeMnD","id":186191,"avatar_url":"https://avatars.githubusercontent.com/u/186191?v=3","gravatar_id":"","url":"https://api.github.com/users/MikeMnD","html_url":"https://github.com/MikeMnD","followers_url":"https://api.github.com/users/MikeMnD/followers","following_url":"https://api.github.com/users/MikeMnD/following{/other_user}","gists_url":"https://api.github.com/users/MikeMnD/gists{/gist_id}","starred_url":"https://api.github.com/users/MikeMnD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikeMnD/subscriptions","organizations_url":"https://api.github.com/users/MikeMnD/orgs","repos_url":"https://api.github.com/users/MikeMnD/repos","events_url":"https://api.github.com/users/MikeMnD/events{/privacy}","received_events_url":"https://api.github.com/users/MikeMnD/received_events","type":"User","site_admin":false},"created_at":"2017-02-22T10:11:17Z","updated_at":"2017-02-22T10:11:17Z","body":"I've got the same question. Cause i made: \r\n\r\n`Route::get('console/search:create-index', function () {\r\n    Artisan::call('scout:import App\\\\\\\\Models\\\\\\\\News');\r\n});`"}}
{"actor":{"display_login":"MikeMnD"}}