File: D:/HostingSpaces/SBogers10/vebon.komma.pro/app/KommaApp/Translations/Kms/TranslationController.php
<?php
/**
*
* @author Komma <info@komma.pro>
* @copyright (c) 2012-2016, Komma Mediadesign
*/
namespace KommaApp\Translations\Kms;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\Redirect;
use KommaApp\Kms\Core\Kms;
use KommaApp\Kms\Core\SectionController;
class TranslationController extends SectionController
{
protected $slug = "translations";
function __construct(Kms $kms, TranslationSection $section)
{
parent::__construct($kms, $section);
}
public function import(){
Artisan::call('translations:import');
return Redirect::back()->with('success', \Lang::get('kms/messages.translation_imported'));
}
}