X7ROOT File Manager
Current Path:
/home/gfecatvj/sites/realesbar/platform/plugins/translation/src/Console
home
/
gfecatvj
/
sites
/
realesbar
/
platform
/
plugins
/
translation
/
src
/
Console
/
📁
..
📄
CleanCommand.php
(927 B)
📄
ExportCommand.php
(2.18 KB)
📄
FindCommand.php
(961 B)
📄
ImportCommand.php
(1.32 KB)
📄
ResetCommand.php
(915 B)
Editing: CleanCommand.php
<?php namespace Botble\Translation\Console; use Botble\Translation\Manager; use Illuminate\Console\Command; class CleanCommand extends Command { /** * The console command name. * * @var string */ protected $name = 'cms:translations:clean'; /** * The console command description. * * @var string */ protected $description = 'Clean empty translations'; /** * @var Manager */ protected $manager; /** * CleanCommand constructor. * @param Manager $manager */ public function __construct(Manager $manager) { $this->manager = $manager; parent::__construct(); } /** * Execute the console command. * * @return void * @throws \Exception */ public function handle() { $this->manager->cleanTranslations(); $this->info('Done cleaning translations'); } }
Upload File
Create Folder