forked from EcomGraduates/KnowledgeBaseApiModule
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.php
More file actions
33 lines (28 loc) · 950 Bytes
/
Copy pathstart.php
File metadata and controls
33 lines (28 loc) · 950 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
/*
|--------------------------------------------------------------------------
| Register Namespaces And Routes
|--------------------------------------------------------------------------
|
| When a module starting, this file will execute 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.
|
*/
// Make sure routes are not cached
if (!app()->routesAreCached()) {
require __DIR__ . '/Http/routes.php';
}
/*
|--------------------------------------------------------------------------
| Register Migrations
|--------------------------------------------------------------------------
|
| Register module migrations so they can be run when migrations are executed.
|
*/
$migrations_path = __DIR__.'/Database/Migrations';
if (is_dir($migrations_path)) {
$this->loadMigrationsFrom($migrations_path);
}