uppercese category qoshildi
This commit is contained in:
@@ -82,7 +82,8 @@ class ConclusionController extends Controller
|
||||
$qrPath = storage_path('app/public/attachments/' . $dbType . $orderId . '/qr.png');
|
||||
if (!file_exists($qrPath)) {
|
||||
Storage::makeDirectory('public/attachments/' . $dbType . $orderId);
|
||||
$qrContent = url(($orderType === 'AUTO' ? 'auto' : 'estate') . '/show/' . $orderId);
|
||||
$cleanType = strtolower($orderType);
|
||||
$qrContent = route('qr.verify', ['type' => $cleanType, 'id' => $orderId]);
|
||||
$qrImage = QrCode::format('png')->size(150)->generate($qrContent);
|
||||
file_put_contents($qrPath, $qrImage);
|
||||
}
|
||||
@@ -123,6 +124,11 @@ class ConclusionController extends Controller
|
||||
'created_at' => now(),
|
||||
'updated_at' => now(),
|
||||
]);
|
||||
|
||||
DB::table($table)->where('id', $orderId)->update([
|
||||
'status' => \App\Enums\OrderStatusEnum::FINISHED->name,
|
||||
'updated_at' => now(),
|
||||
]);
|
||||
}
|
||||
|
||||
$route = $orderType === 'AUTO' ? 'auto.show' : 'estate.show';
|
||||
|
||||
Reference in New Issue
Block a user