Пример #1
0
 /**
  * Execute the console command.
  *
  * @return mixed
  */
 public function handle()
 {
     $format = $this->argument('format');
     $path = $this->argument('path');
     $locale = $this->argument('locale');
     $loader = Factory::make($format, $locale);
     $output = $loader->read($path);
     dd($output);
 }
Пример #2
0
 /**
  * Execute the console command.
  *
  * @return mixed
  */
 public function handle()
 {
     $source = Source::find($this->argument('source'));
     $path = $this->argument('path');
     $format = $source->format;
     $locale = $source->locale;
     $loader = Factory::make($format, $locale);
     $loader->setSource($source);
     $output = $loader->read($path);
     dd($output);
 }