Skip to content

Commit 3b530b9

Browse files
author
Ionut Rusen
committed
Fix interface stub usage in BothCommand
Updated the createInterface method to use the correct 'Interface' stub template instead of the 'Repository' stub. This ensures generated interface files have the appropriate content.
1 parent 1d4ecb9 commit 3b530b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Commands/BothCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function handle()
6262

6363
$this->info("Interface pattern implemented");
6464

65-
65+
6666
}
6767

6868

@@ -85,7 +85,7 @@ protected static function createRepository($name)
8585
}
8686
protected static function createInterface($name)
8787
{
88-
$template = str_replace( ['{{modelName}}'], [$name], self::GetStubs('Repository') );
88+
$template = str_replace( ['{{modelName}}'], [$name], self::GetStubs('Interface') );
8989
file_put_contents(base_path("app/Interfaces/{$name}Interface.php"), $template);
9090
}
9191

0 commit comments

Comments
 (0)