Laravel-Test-Helpers
Laravel-Test-Helpers copied to clipboard
$this->tableName and $this->class->getTable()
Why is the Factory::fire() method trying to build its own table name using $this->parseTableName()
instead of using the one defined in the Model itself? Seems like this:
$this->tableName = $this->parseTableName($class);
$this->class = $this->createModel($class);
Could easily become this:
$this->class = $this->createModel($class);
$this->tableName = $this->class->getTable();
This was causing a problem as my Eloquent class names and table names do not line up that often.
+1