mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 14:34:04 +00:00
18 lines
345 B
PHP
18 lines
345 B
PHP
<?php
|
|
|
|
namespace Stancl\Tenancy\Tests\Etc;
|
|
|
|
use Stancl\Tenancy\Database\Concerns\BelongsToPrimaryModel;
|
|
|
|
/**
|
|
* This model is used with the single-database tenancy approach.
|
|
*/
|
|
class ScopedComment extends Comment
|
|
{
|
|
use BelongsToPrimaryModel;
|
|
|
|
public function getRelationshipToPrimaryModel(): string
|
|
{
|
|
return 'post';
|
|
}
|
|
}
|