Update ApachePingWebsitesWithCurl.php

This commit is contained in:
Bozhidar Slaveykov 2024-04-03 20:01:24 +03:00
parent 49aeea8797
commit 98a98476e4

View file

@ -28,18 +28,18 @@ class ApachePingWebsitesWithCurl extends Command
*/
public function handle()
{
// $findCustomer = \App\Models\Customer::first();
// $findHostingPlan = \App\Models\HostingPlan::first();
//
// for ($i = 80; $i <= 5000; $i++) {
//
// $newSubscription = new \App\Models\HostingSubscription();
// $newSubscription->customer_id = $findCustomer->id;
// $newSubscription->hosting_plan_id = $findHostingPlan->id;
// $newSubscription->domain = 'tesx-site-'.$i.'.test.multiweber.com';
// $newSubscription->save();
//
// }
$findCustomer = \App\Models\Customer::first();
$findHostingPlan = \App\Models\HostingPlan::first();
for ($i = 210; $i <= 5000; $i++) {
$newSubscription = new \App\Models\HostingSubscription();
$newSubscription->customer_id = $findCustomer->id;
$newSubscription->hosting_plan_id = $findHostingPlan->id;
$newSubscription->domain = 'tesx-site-'.$i.'.test.multiweber.com';
$newSubscription->save();
}
// Retrieve all website configurations from the database
$websiteConfigs = Website::get();