| Server IP : 35.80.110.71 / Your IP : 216.73.216.221 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /tmp/ |
Upload File : |
<?php
require __DIR__.'/../var/www/client-portal-laravel-staging/current/vendor/autoload.php';
$app = require __DIR__.'/../var/www/client-portal-laravel-staging/current/bootstrap/app.php';
$app->make(Illuminate\Contracts\Console\Kernel::class)->bootstrap();
use Illuminate\Support\Facades\DB;
DB::table('parent_domains')->updateOrInsert(
['name' => 'sites.scopeforged.com'],
['route53_hosted_zone_id' => 'Z0035399YKCMZK4BAHN8', 'wildcard_cert_status' => 'active', 'is_active' => 1, 'is_default' => 1, 'created_at' => now(), 'updated_at' => now()]
);
DB::table('parent_domains')
->whereIn('name', ['site.scopeforged.com','dcsuniverse.com','femalelarrybird.com','staging.websites.scopeforged.com'])
->update(['is_active' => 0, 'is_default' => 0]);
$sitesId = DB::table('parent_domains')->where('name','sites.scopeforged.com')->value('id');
DB::table('slug_reservations')
->where('website_id','c18ba8f1-f29b-45f2-9166-36005d1557c0')
->update(['parent_domain_id' => $sitesId, 'updated_at' => now()]);
DB::table('websites')
->where('id','c18ba8f1-f29b-45f2-9166-36005d1557c0')
->update(['default_subdomain' => 'cleanyomess.sites.scopeforged.com']);
echo "=== active parents ===\n";
foreach (DB::table('parent_domains')->where('is_active', 1)->get() as $p) {
printf("%s %s\n", $p->is_default ? '*' : ' ', $p->name);
}
echo 'cleanyomess default_subdomain='.DB::table('websites')->where('id','c18ba8f1-f29b-45f2-9166-36005d1557c0')->value('default_subdomain').PHP_EOL;