mirror of
https://github.com/archtechx/tenancy.git
synced 2026-03-23 04:14:05 +00:00
Move classes to separate files
This commit is contained in:
parent
483630897e
commit
dc81b0ec20
4 changed files with 64 additions and 47 deletions
17
tests/Etc/ScopedComment.php
Normal file
17
tests/Etc/ScopedComment.php
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
namespace Stancl\Tenancy\Tests\Etc;
|
||||
|
||||
use Stancl\Tenancy\Database\Concerns\BelongsToPrimaryModel;
|
||||
|
||||
class ScopedComment extends Comment
|
||||
{
|
||||
use BelongsToPrimaryModel;
|
||||
|
||||
protected $table = 'comments';
|
||||
|
||||
public function getRelationshipToPrimaryModel(): string
|
||||
{
|
||||
return 'post';
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue