freescoutAI/start.php

28 lines
801 B
PHP

<?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.
|
*/
// Uncomment if you want to use Laravel 5.5 auto-discovery
/*
if (!app()->configurationIsCached()) {
$loader = \Illuminate\Foundation\AliasLoader::getInstance();
$loader->alias('FreeScoutAI', 'Modules\FreeScoutAI\Facades\FreeScoutAI');
}
*/
/**
* Register module routes.
*/
if (!app()->routesAreCached()) {
require __DIR__ . '/Http/routes.php';
}