so when using the new model factories class introduced in laravel 8.x, ive this weird issue saying that laravel cannot find the factory that corresponds to the model. i get
I was having this same issue, but for a different reason. If you're using factories in the setUp function of a test, make sure:
setUp
Tests\TestCase
PHPUnit\Framework\TestCase
parent::setUp();