File: D:/HostingSpaces/Neopoints/momsecurity.be/app/Posts/Kms/PostController.php
<?php
namespace App\Posts\Kms;
use App\Posts\Models\Post;
use App\Posts\Models\PostTranslation;
use Komma\KMS\Core\SectionController;
final class PostController extends SectionController
{
protected string $slug = "posts";
protected string $classModelName = Post::class;
protected ?string $forTranslationModelName = PostTranslation::class;
function __construct()
{
$postSection = new PostSection($this->slug);
parent::__construct($postSection);
$this->modelService = new PostModelService();
}
}