log con filtro y solo cuando editen el usuario

This commit is contained in:
Felipe
2024-03-20 10:33:19 -05:00
parent dc129dac8a
commit 2b0d1b48e7
4 changed files with 48 additions and 22 deletions
+5
View File
@@ -14,6 +14,7 @@ class ShowLogHistorial extends Component
public $entradas;
public $buscar;
public $tipo;
public $filtro_fecha;
public $user_id;
@@ -32,6 +33,10 @@ class ShowLogHistorial extends Component
}
if ($this->tipo) {
$query->where('detalle', 'like', '%' . $this->tipo . '%');
}
if ($this->filtro_fecha) {
$query->whereDate('created_at', $this->filtro_fecha);
}