diff --git a/composer.json b/composer.json index 6239b5f3..f7656029 100644 --- a/composer.json +++ b/composer.json @@ -18,7 +18,8 @@ "illuminate/support": "^5.5|^6", "illuminate/translation": "^5.5|^6", "symfony/finder": "^3|^4", - "tanmuhittin/laravel-google-translate": "^1.0.2" + "tanmuhittin/laravel-google-translate": "^1.0.2", + "brick/varexporter": "^0.2.1" }, "autoload": { "psr-4": { diff --git a/src/Manager.php b/src/Manager.php index 7e478f5e..abad389d 100644 --- a/src/Manager.php +++ b/src/Manager.php @@ -10,6 +10,7 @@ use Illuminate\Contracts\Foundation\Application; use Barryvdh\TranslationManager\Models\Translation; use Barryvdh\TranslationManager\Events\TranslationsExportedEvent; +use Brick\VarExporter\VarExporter; class Manager { @@ -294,7 +295,7 @@ public function exportTranslations($group = null, $json = false) $path = $path.DIRECTORY_SEPARATOR.$locale.DIRECTORY_SEPARATOR.$group.'.php'; - $output = "files->put($path, $output); } }