mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 11:44:04 +00:00
use BelongsToMany return type
This commit is contained in:
parent
d5d12d1014
commit
dfe1fcecb5
1 changed files with 2 additions and 2 deletions
|
|
@ -5,7 +5,7 @@ declare(strict_types=1);
|
|||
namespace Stancl\Tenancy\Contracts;
|
||||
|
||||
use Illuminate\Database\Eloquent\Collection;
|
||||
use Illuminate\Database\Eloquent\Relations\MorphToMany;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
|
||||
|
||||
// todo move all resource syncing-related things to a separate namespace?
|
||||
|
||||
|
|
@ -14,7 +14,7 @@ use Illuminate\Database\Eloquent\Relations\MorphToMany;
|
|||
*/
|
||||
interface SyncMaster extends Syncable
|
||||
{
|
||||
public function tenants(): MorphToMany;
|
||||
public function tenants(): BelongsToMany;
|
||||
|
||||
public function getTenantModelName(): string;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue