Update ApachePingWebsitesWithCurl.php
This commit is contained in:
parent
49aeea8797
commit
98a98476e4
1 changed files with 12 additions and 12 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue