Skip to content

Commit 1d4ecb9

Browse files
author
Ionut Rusen
committed
Refactor file path for interface creation
Moved the interface file path from "app/Repositories" to "app/Interfaces" in the createInterface method. This change ensures a clearer separation of concerns and better adherence to project structure conventions.
1 parent b5aa5b4 commit 1d4ecb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Commands/BothCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ protected static function createRepository($name)
8686
protected static function createInterface($name)
8787
{
8888
$template = str_replace( ['{{modelName}}'], [$name], self::GetStubs('Repository') );
89-
file_put_contents(base_path("app/Repositories/{$name}Interface.php"), $template);
89+
file_put_contents(base_path("app/Interfaces/{$name}Interface.php"), $template);
9090
}
9191

9292

0 commit comments

Comments
 (0)