mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-13 19:44:04 +00:00
20 lines
582 B
PHP
20 lines
582 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
// todo perhaps create Identification namespace
|
|
|
|
namespace Stancl\Tenancy\Exceptions;
|
|
|
|
use Stancl\Tenancy\Contracts\TenantCouldNotBeIdentifiedException;
|
|
|
|
class TenantCouldNotBeIdentifiedByIdException extends TenantCouldNotBeIdentifiedException
|
|
{
|
|
public function __construct(int|string $tenant_id)
|
|
{
|
|
$this
|
|
->tenantCouldNotBeIdentified("by tenant id: $tenant_id")
|
|
->title('Tenant could not be identified with that ID')
|
|
->description('Are you sure the ID is correct and the tenant exists?');
|
|
}
|
|
}
|