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>
17 lines
332 B
PHP
17 lines
332 B
PHP
<?php
|
|
|
|
namespace App\Tenancy;
|
|
|
|
use RuntimeException;
|
|
|
|
/**
|
|
* A tenant-owned query or insert ran without a current landlord while one was required.
|
|
*/
|
|
class TenantContextMissing extends RuntimeException
|
|
{
|
|
public function __construct(string $model)
|
|
{
|
|
parent::__construct("No current tenant for [{$model}].");
|
|
}
|
|
}
|