fixed import has row model relation issue
This commit is contained in:
parent
3af29e9c38
commit
a014c3d1bf
|
|
@ -234,10 +234,12 @@ abstract class Import implements HasLocalePreference, ShouldQueue, SkipsEmptyRow
|
|||
// This query should be used if there is no deleted_at field in the table or if the deleted data is to be retrieved.
|
||||
return $this->model::withTrashed()->get($this->columns)->each(function ($data) {
|
||||
$data->setAppends([]);
|
||||
$data->unsetRelations();
|
||||
});
|
||||
} else {
|
||||
return $this->model::get($this->columns)->each(function ($data) {
|
||||
$data->setAppends([]);
|
||||
$data->unsetRelations();
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue