when I use PHPUnit in laravel and add a factory to my own test class after running PHPUnit appear this error in the console:
SQLSTATE[HY000]: General error: 1 no such table: users
my test class method:
public function testExistSomeTextsInIndexPage()
{
$users= factory(User::class)->create();
$this->get('/')->assertSee($users->name);
}
this factory code work correctly in other parts of my project just show the error in the test class