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:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user