1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 20:34:03 +00:00
tenancy/tests/Etc/ScopedComment.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';
}
}