Changes to the CSV importer because I ran into small bugs.

This commit is contained in:
James Cole
2016-02-11 08:11:12 +01:00
parent 569e8b6180
commit 4cd7976f63
13 changed files with 26 additions and 17 deletions

View File

@@ -22,7 +22,7 @@ class CategoryName extends BasicConverter implements ConverterInterface
if (isset($this->mapped[$this->index][$this->value])) {
$category = Auth::user()->categories()->find($this->mapped[$this->index][$this->value]);
} else {
$category = Category::firstOrCreateEncrypted(
$category = Category::firstOrCreateEncrypted( // TODO use repository
[
'name' => $this->value,
'user_id' => Auth::user()->id,