Skip to content

Model namespace not appended in the generated model factory class #511

@raymadrona

Description

@raymadrona
  • Laravel Version: 8.62.0
  • PHP Version: 7.4.5
  • Blueprint Version: 2.0.0
  • Platform: Mac | Windows | Linux

Issue:

When building a model with a namespace, the generated model factory does not append the provided namespace.

<?php

namespace Database\Factories; // must be: namespace Database\Factories\Admin;

draft.yaml:

Admin\User:
    name: string

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpendingThis issue is pending review

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions