Skip to content

Commit

Permalink
Fixed import issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Flobbo authored and Flobbo committed Jul 23, 2019
1 parent 192ad46 commit 7538833
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/LaravelCM/Subscribers.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ public function import(Request $request, $field = 'excel') {
foreach($this->results->first() as $k=>$result){
$subscribers['Subscribers'][] = array_merge($result->toArray(),['ConsentToTrack' => 'Yes']);
}

//Set list ID
$this->setListID($request->get('listID'));
//Sync to CM
Expand Down
2 changes: 1 addition & 1 deletion src/LaravelCM/Traits/BaseImport.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function handleUpload(Request $request, $fieldname = 'photo', $folder = '
* @return void
*/
public function importFile($file): void{
$this->results = (new SubscriberImport)->toCollection('storage/xls/'.$file);
$this->results = (new SubscriberImport)->toCollection(storage_path('app/public/xls/').$file);
return;
}

Expand Down

0 comments on commit 7538833

Please sign in to comment.