1
+ # Laravel Module Manager
2
+ - [ Introduction] ( #introduction )
3
+ - [ Installation] ( #installation )
4
+ - [ Folder Structure] ( #folder-structure )
5
+ - Uses
6
+ - [ Configuration] ( #configuration )
7
+ - [ Available Commands] ( #available-commands )
8
+ - [ Loading Component] ( #loading-component )
9
+ - [ Loading View] ( #loading-view )
10
+ - [ Loading Translation] ( #loading-translation )
11
+ - [ Loading Config File] ( #loading-config-file )
12
+
1
13
# Introduction
2
14
When you work on small project, you will feel laravel default structure
3
15
is enough. When your project grows up, you will think to divide
4
- your app into module where each module will contain all of it resources
16
+ your app into modules where each module will contain all of it resources
5
17
such as Controllers, Models, Views, Migrations, Config etc. This ` laravel-module-manager `
6
18
package will help you to manage laravel modular application easily.
7
19
@@ -24,7 +36,7 @@ To create new module run the bellow command:
24
36
php artisan module:create name-of-your-module
25
37
php artisan module:install {module_alias_name}
26
38
27
-
39
+ ### Folder Structure
28
40
If your module name is ` module1 ` the module structure will be
29
41
30
42
![ Module Structure] ( https://mrabbani.github.io/public/images/module_structure.png " Module Structure ")
@@ -40,7 +52,7 @@ into your application's base directory. If you want to change publish
40
52
Now you can change the default * modules* directory by changing
41
53
` module_directory ` value of ` config/module_manager.php ` file.
42
54
43
- ### Available commands
55
+ ### Available Commands
44
56
45
57
To see all module related commands run ` php artisan ` into terminal.
46
58
Available commands are:
@@ -75,7 +87,7 @@ You must install your module to activate
75
87
### Loading Component
76
88
You have to load views, config and translation by following [ laravel package] ( https://laravel.com/docs/5.3/packages#resources )
77
89
78
- ##### Loading view
90
+ ##### Loading View
79
91
80
92
view(module_alias::view_file)
81
93
@@ -84,12 +96,12 @@ you may load the **module1** module's `index.blade.php` view like so:
84
96
view('module1::index');
85
97
86
98
87
- ##### Loading translation
99
+ ##### Loading Translation
88
100
89
101
you may load the ** module1** module's ` welcome ` line from the ` messages ` file like so:
90
102
91
103
trans('module1::messages.welcome');
92
- ##### Loading config file
104
+ ##### Loading Config File
93
105
94
106
you may load the ** module1** module's ` welcome ` line from the ` messages ` file like so:
95
107
0 commit comments