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: FindCommand.php
<?php namespace Botble\Translation\Console; use Botble\Translation\Manager; use Illuminate\Console\Command; class FindCommand extends Command { /** * The console command name. * * @var string */ protected $name = 'cms:translations:find'; /** * The console command description. * * @var string */ protected $description = 'Find translations in blade files'; /** * @var Manager */ protected $manager; /** * FindCommand constructor. * @param Manager $manager */ public function __construct(Manager $manager) { $this->manager = $manager; parent::__construct(); } /** * Execute the console command. * * @return int */ public function handle() { $counter = $this->manager->findTranslations(null); $this->info('Done importing, processed ' . $counter . ' items!'); return 0; } }
Upload File
Create Folder