We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cc194fe + 83e986e commit c91fd3fCopy full SHA for c91fd3f
1 file changed
app/Http/Controllers/RegistroController.php
@@ -54,6 +54,7 @@ public function store(RegistroRequest $request)
54
# verifica se é entrada ou saída
55
$registros = Registro::where('created_at', '>=', Carbon::today())
56
->where('codpes',$validated['codpes'])
57
+ ->where('status', 'válido') # apenas registros validados
58
->orderBy('created_at', 'desc')
59
->get();
60
0 commit comments