Actualización de moelo user y relación many con asistencias, creación del modelo de asistencia y control por middleware y autenticación

This commit is contained in:
2026-02-11 11:10:17 -06:00
parent 5c93101464
commit 5fe41a4557
25 changed files with 545 additions and 247 deletions
+30
View File
@@ -0,0 +1,30 @@
<?php
namespace App\Livewire;
use Livewire\Component;
use Livewire\Attributes\On;
class CodeScanner extends Component
{
#[On('qrLeido')]
public function qrLeido($texto, $lat, $lng)
{
$this->dispatch('swal',
icon: 'success',
title: 'Asistencia registrada!',
text: $lat,
timer: 2000,
confirm: false,
closeModal: true
);
}
public function render()
{
return view('livewire.code-scanner');
}
}