Update web.php

This commit is contained in:
Bozhidar Slaveykov 2024-04-03 19:40:15 +03:00
parent 02f22e0037
commit e2d3b0735b

View file

@ -39,11 +39,19 @@ Route::get('/', function () {
Route::get('dev', function () {
$findWebsite = \App\Models\Website::where('id', 11)->first();
$findWebsite->domain_root = '/var/www/' . $findWebsite->domain;
$findWebsite->save();
$findCustomer = \App\Models\Customer::first();
$findHostingPlan = \App\Models\HostingPlan::first();
event(new \App\Events\HostingAccountIsCreated($findWebsite));
for ($i = 1; $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();
}
});