Skip to content

Commit 8551c5b

Browse files
committed
fix:
fix module provider path.
1 parent 3f57dff commit 8551c5b

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# AppMaker
22
With AppMaker You can create the Apps or Modules you want for your Laravel Application.
3+
<br><b>Version: 2.0.0 dev</b>
34

45
## Installation
56
Open your Terminal in your project dir and run:
@@ -20,10 +21,10 @@ php artisan app:make AppName
2021
composer dump-autoload
2122
```
2223

23-
3) To access your added app, you must add your Service Provider located at ` Modules/YourAppName/Provider ` class to the `app.php` file in the 'config' directory:
24-
25-
![app.php](https://raw.githubusercontent.com/amikavousi/images/main/carbon%20(1).png)
24+
3) To access your added app, you must add your <b>Module Service Provider</b> located at ` Modules/ModulesProvider/ModulesServiceProvider.php` class to the `app.php` file in the 'config' directory:
2625

26+
![app.php](https://raw.githubusercontent.com/amikavousi/images/main/app-php-v2.png)
27+
know your Modules service provider add to <b>ModulesServiceProvider.php</b> automatically.
2728
4) To test your app, simply run ` php artisan serve ` in your terminal. Then, open your browser and visit `localhost:8000/AppName/AppName`. You will see:
2829

2930
![test.php](https://raw.githubusercontent.com/amikavousi/images/main/Screen%20Shot%202023-08-04%20at%2012.29.23%20AM.png)

src/Console/AppMaker.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ private function createModuleProvider()
103103

104104
if (!file_exists($moudleServiceProviderFile)) {
105105
(new Filesystem())->ensureDirectoryExists($moudleServiceProviderPath);
106-
(new Filesystem())->copy(__DIR__ . '/../../stubs/ModulesProvider/ModuleServiceProvider.php',
106+
(new Filesystem())->copy(__DIR__ . '/../../stubs/app/ModulesProvider/ModuleServiceProvider.php',
107107
$moudleServiceProviderFile);
108108
(new Filesystem())->replaceInFile('Example', ucfirst($this->appName ), $moudleServiceProviderFile);
109109
} else {

0 commit comments

Comments
 (0)