mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 17:54:03 +00:00
20 lines
396 B
PHP
20 lines
396 B
PHP
<?php
|
|
|
|
namespace Stancl\Tenancy\Tests\Etc;
|
|
|
|
use Stancl\Tenancy\Database\Concerns\BelongsToPrimaryModel;
|
|
|
|
/**
|
|
* This model is intended to be used with the single-database tenancy approach.
|
|
*/
|
|
class ScopedComment extends Comment
|
|
{
|
|
use BelongsToPrimaryModel;
|
|
|
|
protected $table = 'comments';
|
|
|
|
public function getRelationshipToPrimaryModel(): string
|
|
{
|
|
return 'post';
|
|
}
|
|
}
|