How can I scan my generated QR Code in laravel? When I try to scan my generated code, nothing happens, and I want it to be save to the database. I want to display the data from the generated QR code in the table These are my codes for generation of QR Code:
// AdminController.php
public function emailview_approved($id)
{
$appointment = Appointment::find($id);
$data = [
'name' => $appointment->name,
'date' => $appointment->date,
'department' => $appointment->department_name,
];
$qrCode = generateQRCode($appointment);
// Update the appointment status
$appointment->status = 'Approved';
$appointment->save();
$appointment = Appointment::find($id);
return view('admin.email_view_approved', compact('appointment', 'qrCode'));
}