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:
1 parent
d9e52c4789
commit
8ebc1a3878
93 files changed
+2506
-112
No files matched your search
@@ -36,6 +36,16 @@ public function definition(): array
|
||||
];
|
||||
}
|
||||
|
||||
public function configure(): static
|
||||
{
|
||||
return $this->afterCreating(function (Booking $booking): void {
|
||||
Guest::withoutGlobalScope('tenant')
|
||||
->whereKey($booking->guest_id)
|
||||
->where('tenant_id', '!=', $booking->tenant_id)
|
||||
->update(['tenant_id' => $booking->tenant_id]);
|
||||
});
|
||||
}
|
||||
|
||||
public function reserved(?\DateTimeInterface $holdExpiresAt = null): static
|
||||
{
|
||||
return $this->state(fn (): array => [
|
||||
|
||||
Reference in new issue
Block a user