master
cody 5 months ago
parent 63fef77b9a
commit 606bcc8844

@ -56,7 +56,7 @@ class EmailRecordController extends BaseController
public function index() public function index()
{ {
$all = request()->all(); $all = request()->all();
$list = $this->model->with('emailRecordUsers')->where(function ($query) use ($all) { $list = $this->model->where(function ($query) use ($all) {
if (isset($all['filter']) && !empty($all['filter'])) { if (isset($all['filter']) && !empty($all['filter'])) {
foreach ($all['filter'] as $condition) { foreach ($all['filter'] as $condition) {
$key = $condition['key'] ?? null; $key = $condition['key'] ?? null;

Loading…
Cancel
Save