Generate QR code on order create; implement reGenerate route

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-06 16:30:55 +05:00
parent 3d8edf0b39
commit 50e0f1b8ef
3 changed files with 17 additions and 0 deletions

View File

@@ -4,6 +4,7 @@ namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
use App\Http\Controllers\QrController;
class EstateController extends Controller
{
@@ -93,6 +94,7 @@ class EstateController extends Controller
'created_at' => $request->created_at ?? now(),
'updated_at' => now(),
]);
QrController::generateQr($id, 'estate_');
return redirect()->route('estate.show', $id);
}