Skip to content

Commit

Permalink
Fix: laravel 9+ support
Browse files Browse the repository at this point in the history
  • Loading branch information
ShibuyaKosuke authored Oct 29, 2022
1 parent a2cf538 commit 2673871
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Console/TransExportCommend.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@ public function handle(): void

CreateView::down();

$locale = app()->getLocale();
$dir = resource_path(sprintf('lang/%s', $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));
}
Expand Down

0 comments on commit 2673871

Please sign in to comment.