29 $site = SiteModel::query()->where('subdomain', $subdomain)->one();
30 }
31
32 if(!$site) {
33 throw new RecordNotFoundException;
34 }
35
36 session()->set('tenant', $site->toArray());
37 }