Refactor helper functions, improve product filtering, and update seeders. Adjusted SMS sending logic for better readability, implemented multi-level category filtering in ProductRepository, and commented out old data seeding in ChannelTableSeeder and UserTableSeeder for a cleaner setup.

This commit is contained in:
Mekan1206 committed 2025-12-19 21:50:17 +05:00
1 parent 19cc47942b
commit ba9402afb0
7 files changed
+59 -26

No files matched your search

+3 -4
View File
@@ -83,8 +83,8 @@ function sendSMS(string|int $phone, string|int $message): mixed
return true;
})
->post('http://216.250.14.144:3000/api/data', [
'phone' => '+993'.$phone,
'code' => $message,
'phone' => '+993'.$phone,
'code' => $message,
]);
return $response->body();
@@ -396,7 +396,7 @@ function createHalkbankOrder($price = 123): array
return [
'status' => 'failed',
'url' => '',
'orderId' => ''
'orderId' => '',
];
}
@@ -407,7 +407,6 @@ function createHalkbankOrder($price = 123): array
];
}
/**
* Original quality :D
*/