Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
kanyxmo committed Aug 24, 2022
2 parents b061aff + e41f8e6 commit 945eb37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mine/Generator/ApiGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ public function generator(): void
{
$filename = Str::camel(str_replace(env('DB_PREFIX'), '', $this->model->table_name));
$module = Str::lower($this->model->module_name);
$this->filesystem->makeDirectory(BASE_PATH . "/runtime/generate/vue/src/api/apis/{$module}", 0755, true, true);
$path = BASE_PATH . "/runtime/generate/vue/src/api/apis/{$module}/{$filename}.js";
$this->filesystem->makeDirectory(BASE_PATH . "/runtime/generate/vue/src/api/{$module}", 0755, true, true);
$path = BASE_PATH . "/runtime/generate/vue/src/api/{$module}/{$filename}.js";
$this->filesystem->put($path, $this->replace()->getCodeContent());
}

Expand Down

0 comments on commit 945eb37

Please sign in to comment.