⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.1
Server IP:
185.238.29.86
Server:
Linux server2 6.8.12-6-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-6 (2024-12-19T19:05Z) x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
muhasebe
/
app
/
Console
/
Commands
/
Edit File: scanLanguage.php
<?php namespace App\Console\Commands; use Illuminate\Console\Command; use Modules\Language\Admin\TranslationsController; class scanLanguage extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'language:scan'; /** * The console command description. * * @var string */ protected $description = 'Get all translation string from source code'; protected $controller; /** * Create a new command instance. * * @return void */ public function __construct(TranslationsController $controller) { parent::__construct(); $this->controller = $controller; } /** * Execute the console command. * * @return mixed */ public function handle() { $count = $this->controller->findTranslations(); $this->controller->genDefault(); $this->info('Scan completed, found '.$count. ' text!'); } }
Simpan