1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 23:04:03 +00:00
tenancy/tests/Etc/ScopedComment.php
2023-05-29 09:55:59 +02:00

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';
}
}