Skip to content

Commit 2e4272b

Browse files
committed
Fix Config Registration for Lumen
1 parent 831b374 commit 2e4272b

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

Readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Navigate to `app.php` in `bootstrap` folder and add following line after config
1717
```php
1818
$app->register(Nanvaie\DatabaseRepository\DatabaseRepositoryServiceProvider::class)
1919
```
20+
Copy [repository.php](./src/Config/repository.php) to project config folder located at project root.
2021

2122
Note: Make sure to run `composer dump-autoload` after these changes.
2223

src/Config/repository.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,6 @@
2626
'repository' => 'app'.DR.'Models'.DR.'Repositories'.DR,
2727
],
2828

29-
'absolute' => [
30-
'entities' => app_path('Models'.DR.'Entities'.DR),
31-
'factories' => app_path('Models'.DR.'Factories'.DR),
32-
'resource' => app_path('Http'.DR.'Resources'.DR.'Admin'.DR),
33-
'repository' => app_path('Models'.DR.'Repositories'.DR),
34-
]
35-
3629
]
3730

3831
];

0 commit comments

Comments
 (0)