File: D:/HostingSpaces/blijegasten/blijegasten.be/app/Komma/Shop/Discounts/DiscountController.php
<?php
namespace App\Komma\Shop\Discounts;
/**
* @author Komma <info@komma.pro>
* @copyright (c) 2012-2016, Komma
*/
use App\Komma\Kms\Core\SectionController;
use Illuminate\Support\Facades\Request;
use Illuminate\Support\Facades\Response;
class DiscountController extends SectionController
{
protected $slug = "discounts";
protected $classModelName = Discount::class;
protected $forTranslationModelName = DiscountTranslation::class;
/**
* Constructor
* @param DiscountSection $transferSection
*/
public function __construct()
{
if(app()->runningInConsole()) return;
$section = new DiscountSection($this->slug);
parent::__construct($section);
}
}