Update web.php
This commit is contained in:
parent
02f22e0037
commit
e2d3b0735b
1 changed files with 12 additions and 4 deletions
|
@ -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();
|
||||
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue