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

use BelongsToMany return type

This commit is contained in:
Abrar Ahmad 2022-11-10 14:36:27 +05:00
parent d5d12d1014
commit dfe1fcecb5

View file

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