Assign the existing site to one landlord so stommer.info can run tenancy.

Seebad 0.3 stays in this release. With a single landlord every host still reaches the default website.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
LarsandCursor committed 2026-10-23 12:00:11 +02:00
1 parent d9e52c4789
commit 8ebc1a3878
93 files changed
+2506 -112

No files matched your search

+6
View File
@@ -4,6 +4,8 @@
use App\Enums\ExtraPricing;
use App\Models\Property;
use App\Models\Tenant;
use App\Tenancy\TenantContext;
use Illuminate\Database\Seeder;
/**
@@ -16,7 +18,11 @@ class PropertySeeder extends Seeder
*/
public function run(): void
{
$tenant = Tenant::stommer();
app(TenantContext::class)->set($tenant);
$property = Property::create([
'tenant_id' => $tenant->id,
'name' => 'Ferienwohnung Stommer',
'slug' => 'ferienwohnung-stommer',
'address' => 'Strandstraße 15, 18225 Kühlungsborn',
+6
View File
@@ -5,6 +5,8 @@
use App\Models\Page;
use App\Models\Property;
use App\Models\Site;
use App\Models\Tenant;
use App\Tenancy\TenantContext;
use Illuminate\Database\Seeder;
use Illuminate\Support\Arr;
@@ -19,7 +21,11 @@ class SiteSeeder extends Seeder
*/
public function run(): void
{
$tenantId = Property::withoutGlobalScope('tenant')->value('tenant_id') ?? Tenant::stommer()->id;
app(TenantContext::class)->set(Tenant::query()->findOrFail($tenantId));
$site = Site::create([
'tenant_id' => $tenantId,
'name' => 'Ferienwohnung Stommer',
'domain' => null,
'is_default' => true,
+3 -1
View File
@@ -5,6 +5,7 @@
use App\Enums\AmenityArea;
use App\Models\Faq;
use App\Models\Property;
use App\Tenancy\TenantContext;
use Illuminate\Database\Seeder;
/**
@@ -17,7 +18,8 @@ class WebsiteContentSeeder extends Seeder
*/
public function run(): void
{
$property = Property::query()->firstOrFail();
$property = Property::withoutGlobalScope('tenant')->firstOrFail();
app(TenantContext::class)->set($property->tenant);
$amenities = [
AmenityArea::General->value => ['Schnelles WLAN kostenlos', 'Pkw-Stellplatz inklusive', 'Abschließbarer Fahrradraum für 2 Räder', 'Diele mit großem Kleiderschrank und Spiegeln'],