{"action":"closed","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/27018","repository_url":"https://api.github.com/repos/laravel/framework","labels_url":"https://api.github.com/repos/laravel/framework/issues/27018/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/27018/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/27018/events","html_url":"https://github.com/laravel/framework/issues/27018","id":394998158,"node_id":"MDU6SXNzdWUzOTQ5OTgxNTg=","number":27018,"title":"QueryException: General error: 1 no such table: {table_name} (SQL: select * from \"{table_name}\")","user":{"login":"ellis22","id":16700591,"node_id":"MDQ6VXNlcjE2NzAwNTkx","avatar_url":"https://avatars2.githubusercontent.com/u/16700591?v=4","gravatar_id":"","url":"https://api.github.com/users/ellis22","html_url":"https://github.com/ellis22","followers_url":"https://api.github.com/users/ellis22/followers","following_url":"https://api.github.com/users/ellis22/following{/other_user}","gists_url":"https://api.github.com/users/ellis22/gists{/gist_id}","starred_url":"https://api.github.com/users/ellis22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ellis22/subscriptions","organizations_url":"https://api.github.com/users/ellis22/orgs","repos_url":"https://api.github.com/users/ellis22/repos","events_url":"https://api.github.com/users/ellis22/events{/privacy}","received_events_url":"https://api.github.com/users/ellis22/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-12-31T15:49:00Z","updated_at":"2018-12-31T16:40:20Z","closed_at":"2018-12-31T16:40:20Z","author_association":"NONE","body":"- Laravel Version: 5.7\r\n- PHP Version: 7.2\r\n- Database Driver: sqlite\r\n- Database: memory\r\n\r\nAll testing on PHPUnit was working completely fine. But when I added `View::share` in `AppServiceProvider` then all the PHPUnit tests failed.\r\n\r\n**AppServiceProvider.php**\r\n```php\r\nclass AppServiceProvider extends ServiceProvider\r\n{\r\n    public function boot()\r\n    {\r\n        \\View::share('categories', \\App\\Models\\Category::all());\r\n    }\r\n}\r\n```\r\n\r\n**Error**\r\n```shell\r\nIlluminate\\Database\\QueryException: SQLSTATE[HY000]: General error: 1 no such table: categories (SQL: select * from \"categories\")\r\n```\r\nPlease guide me, how can I fix this. Where should I call `View::share` in Laravel app so, all tests should pass."}}
{"actor":{"display_login":"GrahamCampbell"}}