HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/shop.komma.nl/vendor/komma/kms/src/Sites/SitesTrait.php
<?php

namespace Komma\KMS\Sites;


use Illuminate\Database\Eloquent\Relations\BelongsToMany;
use Komma\KMS\Sites\Models\SiteInterface;

/**
 * Trait SiteTrait
 *
 * @mixin \Illuminate\Database\Eloquent\Model
 * @package Komma\KMS\Sites
 */
trait SitesTrait
{
    /**
     * Get the sites for this model
     *
     * @return BelongsToMany
     */
    public function sites(): BelongsToMany
    {
        return $this->belongsToMany(get_class(app(SiteInterface::class)));
    }
}