1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 17:34:03 +00:00

Update SyncMaster.php

This commit is contained in:
Abrar Ahmad 2022-11-08 17:22:23 +05:00
parent 14dfbd4528
commit 01a3a5fbab

View file

@ -5,7 +5,7 @@ declare(strict_types=1);
namespace Stancl\Tenancy\Contracts;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
use Illuminate\Database\Eloquent\Relations\MorphToMany;
// todo move all resource syncing-related things to a separate namespace?
@ -14,7 +14,7 @@ use Illuminate\Database\Eloquent\Relations\BelongsToMany;
*/
interface SyncMaster extends Syncable
{
//public function tenants(): BelongsToMany;
public function resources(): MorphToMany;
public function getTenantModelName(): string;
}