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
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/factorieswithout proberly using Laravel'sbase_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