The directory structure of the factories does mirror the models, so if the model is in app/Feature/Models, the factory is created in database/factories/Features/Models. Which is great.
But the factory namespace is
namespace Database\Factories;
And when calling App\Feature\Models\Foo::factory(), laravel resolves the factory to Database\Factories\Feature\Models\FooFactory, which doesn't exist.
Possibly related to #1
The directory structure of the factories does mirror the models, so if the model is in
app/Feature/Models
, the factory is created indatabase/factories/Features/Models
. Which is great.But the factory namespace is
And when calling
App\Feature\Models\Foo::factory()
, laravel resolves the factory toDatabase\Factories\Feature\Models\FooFactory
, which doesn't exist.