File tree Expand file tree Collapse file tree 2 files changed +26
-26
lines changed Expand file tree Collapse file tree 2 files changed +26
-26
lines changed Original file line number Diff line number Diff line change @@ -46,23 +46,23 @@ abstract class MySqlRepository
4646 $query = $this->alternativeDbConnection->table($this->table);
4747 }
4848
49- if ($this->softDelete) {
50- if (!$this->withTrashed) {
51- $query = $query->whereNull('deleted_at');
52- } else {
53- $this->withTrashed = false;
54- }
55- }
49+ // if ($this->softDelete) {
50+ // if (!$this->withTrashed) {
51+ // $query = $query->whereNull('deleted_at');
52+ // } else {
53+ // $this->withTrashed = false;
54+ // }
55+ // }
5656
5757 return $query;
5858 }
5959
60- public function withTrashed(): MySqlRepository
61- {
62- $this->withTrashed = true;
63-
64- return $this;
65- }
60+ // public function withTrashed(): MySqlRepository
61+ // {
62+ // $this->withTrashed = true;
63+ //
64+ // return $this;
65+ // }
6666
6767 /**
6868 * @param int|null $total
Original file line number Diff line number Diff line change @@ -46,23 +46,23 @@ abstract class MySqlRepository
4646 $query = $this->alternativeDbConnection->table($this->table);
4747 }
4848
49- if ($this->softDelete) {
50- if (!$this->withTrashed) {
51- $query = $query->whereNull('deleted_at');
52- } else {
53- $this->withTrashed = false;
54- }
55- }
49+ // if ($this->softDelete) {
50+ // if (!$this->withTrashed) {
51+ // $query = $query->whereNull('deleted_at');
52+ // } else {
53+ // $this->withTrashed = false;
54+ // }
55+ // }
5656
5757 return $query;
5858 }
5959
60- public function withTrashed(): MySqlRepository
61- {
62- $this->withTrashed = true;
63-
64- return $this;
65- }
60+ // public function withTrashed(): MySqlRepository
61+ // {
62+ // $this->withTrashed = true;
63+ //
64+ // return $this;
65+ // }
6666
6767 /**
6868 * @param int|null $total
You can’t perform that action at this time.
0 commit comments