diff --git a/src/Console/TransExportCommend.php b/src/Console/TransExportCommend.php index a2d860e..ba05f30 100644 --- a/src/Console/TransExportCommend.php +++ b/src/Console/TransExportCommend.php @@ -12,6 +12,7 @@ /** * Class TransExportCommend + * * @package ShibuyaKosuke\LaravelDdlExport\Console */ class TransExportCommend extends Command @@ -48,13 +49,15 @@ public function handle(): void CreateView::down(); - $locale = App::getLocale(); - $dir = App::langPath($locale); + $locale = \App::getLocale(); + $dir = \App::langPath($locale); if (!file_exists($dir) && !mkdir($dir, true) && !is_dir($dir)) { throw new \RuntimeException(sprintf('Directory "%s" was not created', $dir)); } + $file = $dir . '/columns.php'; + File::put( $file, sprintf("