Client generate add api config json
This commit is contained in:
parent
022507a72c
commit
856e708e46
1 changed files with 14 additions and 0 deletions
|
|
@ -43,6 +43,20 @@ class GenerateCrmClient extends Command
|
|||
$this->copyExceptions();
|
||||
$this->copyTranslations();
|
||||
$this->copyRoutesList();
|
||||
$this->copyApiConfigInfo();
|
||||
}
|
||||
|
||||
private function copyApiConfigInfo()
|
||||
{
|
||||
$this->info('Copy Api Config');
|
||||
$rootTarget = app_path('../' . self::TARGET);
|
||||
if (File::exists("$rootTarget/../apiConfig.readonly.json")) {
|
||||
File::delete("$rootTarget/../apiConfig.readonly.json");
|
||||
}
|
||||
File::put(
|
||||
"$rootTarget/../apiConfig.readonly.json",
|
||||
\json_encode(config('api'), JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES)
|
||||
);
|
||||
}
|
||||
|
||||
private function copyRoutesList()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue