mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 12:24:04 +00:00
21 lines
557 B
PHP
21 lines
557 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Stancl\Tenancy\Contracts;
|
|
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
/**
|
|
* @property-read Tenant $tenant
|
|
*
|
|
* @see \Stancl\Tenancy\Database\Models\Domain
|
|
*
|
|
* @method __call(string $method, array $parameters) IDE support. This will be a model. // todo check if we can remove these now
|
|
* @method static __callStatic(string $method, array $parameters) IDE support. This will be a model.
|
|
* @mixin \Illuminate\Database\Eloquent\Model
|
|
*/
|
|
interface Domain
|
|
{
|
|
public function tenant(): BelongsTo;
|
|
}
|