I want to seed database when I use this
public function run()
{
$users = factory(app\User::class, 3)->create();
}
Add three user in database but when I use this
public function run()
{
$Comment= factory(app\Comment::class, 3)->create();
}
Show me error
[InvalidArgumentException]
Unable to locate factory with name [default] [app\Comment].
use PHPUnit\Framework\TestCase;
[WRONG: and throws this error]
use Tests\TestCase;
[CORRECT]