File: D:/HostingSpaces/farmfun/reserveren.farmfun.be/app/Komma/Posts/Kms/PostController.php
<?php
namespace App\Komma\Posts\Kms;
use App\Komma\Kms\Core\SectionController;
use App\Komma\Posts\Models\Post;
use App\Komma\Posts\Models\PostTranslation;
class PostController extends SectionController
{
protected $slug = 'posts';
protected $classModelName = Post::class;
protected $forTranslationModelName = PostTranslation::class;
/**
* Constructor
*/
public function __construct()
{
$postSection = new PostSection($this->slug);
parent::__construct($postSection);
$this->modelService = app()->make(PostService::class);
}
}