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
2025-12-19 21:50:17 +05:00
parent 19cc47942b
commit ba9402afb0
7 changed files with 59 additions and 26 deletions

View File

@@ -83,8 +83,8 @@ if (! function_exists('sendSMS')) {
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
*/