sample event listener and scaffolding for a module

This commit is contained in:
Nabeel Shahzad
2017-12-02 09:19:58 -06:00
parent b14f4355da
commit df2b092d60
15 changed files with 143 additions and 38 deletions

View File

@@ -10,10 +10,11 @@
"extra": {
"laravel": {
"providers": [
"Modules\\Sample\\Providers\\SampleServiceProvider"
"Modules\\Sample\\Providers\\SampleServiceProvider",
"Modules\\Sample\\Providers\\EventServiceProvider"
],
"aliases": {
}
}
},

View File

@@ -6,11 +6,10 @@
"active": 1,
"order": 0,
"providers": [
"Modules\\Sample\\Providers\\SampleServiceProvider"
"Modules\\Sample\\Providers\\SampleServiceProvider",
"Modules\\Sample\\Providers\\EventServiceProvider"
],
"aliases": {},
"files": [
"start.php"
],
"files": [],
"requires": []
}

View File

@@ -1,17 +0,0 @@
<?php
/*
|--------------------------------------------------------------------------
| Register Namespaces And Routes
|--------------------------------------------------------------------------
|
| When a module starting, this file will executed automatically. This helps
| to register some namespaces like translator or view. Also this file
| will load the routes file for each module. You may also modify
| this file as you want.
|
*/
/*if (!app()->routesAreCached()) {
require __DIR__ . '/Http/routes.php';
}*/