Skip to content

Unable to correctly resolve path to database/factories directory #23

@palypster

Description

@palypster

I'm having problems with generating factories - app is not able to resolve the path to the database folder correctly.

I've debugged to problem and found out, that you have hardoced the path to database/factories without proberly using Laravel's base_path() helper.

So instead of using:
$filename = "database/factories/{$class}Factory.php";
it should be (in my opinion) wrapped like this:
$filename = base_path("database/factories/{$class}Factory.php");

Would you mind changing this? It's a very easy fix.

Note that the path is hard-coded in three different places, so this needs to be reflected in all three places.

Many thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions