Skip to content

Commit

Permalink
Update MakeCrudModuleCommand.php
Browse files Browse the repository at this point in the history
  • Loading branch information
milwad-dev committed Jan 23, 2025
1 parent e7979a0 commit 45f9681
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Commands/Modules/MakeCrudModuleCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ protected function makeMigration(string $name): void
$currentNameWithCheckLatestLetter = LaravelCrodServiceFacade::getCurrentNameWithCheckLatestLetter($name);

$this->call('make:migration', [
'name' => 'create_'.$currentNameWithCheckLatestLetter.'_table',
'--path' => $path,
'name' => 'create_'.$currentNameWithCheckLatestLetter.'_table',
'--path' => $path,
'--create' => true,
]);
}
Expand Down Expand Up @@ -330,7 +330,7 @@ protected function getNamespace(string $name, string $path): string
*/
protected function getDestPath(string $name, string $path): string
{
$path = str_replace("\\", '/', $path);
$path = str_replace('\\', '/', $path);
$to = base_path("$this->module_namespace/$name/$path");
if (!File::isDirectory($to)) {
File::makeDirectory($to, 0755, true);
Expand Down

0 comments on commit 45f9681

Please sign in to comment.