File: D:/HostingSpaces/SBogers10/csb.komma.pro/app/Site/Site.php
<?php declare(strict_types=1);
namespace App\Site;
use App\Pages\Models\Page;
use App\Posts\Models\Post;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Komma\KMS\Sites\Models\Site as KmsSite;
class Site extends KmsSite
{
public function pages(): HasMany
{
return $this->hasMany(Page::class);
}
public function posts(): BelongsToMany
{
return $this->belongsToMany(Post::class);
}
}