Skip to content

Commit 4e1f88f

Browse files
committed
Minor Change in Repository's Stubs Path
1 parent 4b032f0 commit 4e1f88f

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

config/repository.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@
1616
'entities' => 'stubs/repository.entity.',
1717
'factories' => 'stubs/repository.factory.',
1818
'resources' => 'stubs/repository.resource.',
19-
'mysql-repositories' => 'stubs/repository.mysql.',
19+
'repositories' => [
20+
'mysql' => 'stubs/repository.mysql.',
21+
'interface' => 'stubs/repository.interface.',
22+
]
2023
],
2124

2225
'relative' => [

src/Commands/MakeMySqlRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function handle(): int
6666
$factoryNamespace = config('repository.path.namespace.factories');
6767
$mysqlRepositoryNamespace = config('repository.path.namespace.repositories');
6868
$relativeMysqlRepositoryPath = config('repository.path.relative.repositories') . "\\$entityName";
69-
$mysqlRepositoryStubsPath = config('repository.path.stub.mysql-repositories');
69+
$mysqlRepositoryStubsPath = config('repository.path.stub.repositories.mysql');
7070
$filenameWithPath = $relativeMysqlRepositoryPath.'\\'.$mysqlRepositoryName.'.php';
7171

7272
if ($this->option('delete')) {

0 commit comments

Comments
 (0)