From c74d6ea3b769e57ad7ca994dd611dc444beda3fd Mon Sep 17 00:00:00 2001 From: Kosuke Shibuya Date: Mon, 7 Nov 2022 00:34:00 +0900 Subject: [PATCH] Update TransExportCommend.php --- src/Console/TransExportCommend.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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("