File: D:/HostingSpaces/SBogers10/arborconsulting.komma.pro/app/KommaApp/Posts/Kms/PostController.php
<?php
namespace App\KommaApp\Posts\Kms;
/**
* @author Komma <info@komma.pro>
* @copyright (c) 2012-2016, Komma
*/
use App\KommaApp\Kms\Core\SectionController;
use App\KommaApp\Languages\Models\Language;
use App\KommaApp\Posts\Models\Post;
use Laracasts\Behat\Context\App;
class PostController extends SectionController
{
protected $slug = "posts";
protected $forModelName = Post::class;
function __construct(PostSection $section)
{
\App::setLanguage(Language::where('iso_2', '=', 'nl')->first());
// dd(\App::getLanguage());
parent::__construct($section);
}
}