mirror of
https://gh.wpcy.net/https://github.com/EcomGraduates/KnowledgeBaseApiModule.git
synced 2026-04-18 06:52:16 +08:00
33 lines
950 B
PHP
33 lines
950 B
PHP
<?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);
|
|
}
|