spotlight/Modules/Providers/ModulesServiceProvider.php
/**
     * Will make sure that the required modules have been fully loaded
     * @return void routeModule
     */
Will make sure that the required modules have been fully loaded
@return void routeModule
Will make sure that the required modules have been fully loaded @return void routeModule
public function boot() 
    {
        $modules = config("module.modules");
        $this->loadViewsFrom(realpath(__DIR__.'/../views'), 'packages');
        while (list(,$module) = each($modules)) {
                if(file_exists(__DIR__.'/'.$module.'/routes.php')) {
                    include __DIR__.'/'.$module.'/routes.php';
                }
                if(is_dir(__DIR__.'/'.$module.'/Views')) {
                    $this->loadViewsFrom(__DIR__.'/'.$module.'/Views', $module);
                }
        }
    }
public function boot ( ) { $ modules = config ( " module.modules " ) ; $ this -> loadViewsFrom ( realpath ( __DIR__ . '/../views' ) , 'packages' ) ; while ( list ( , $ module ) = each ( $ modules ) ) { if ( file_exists ( __DIR__ . '/' . $ module . '/routes.php' ) ) { include __DIR__ . '/' . $ module . '/routes.php' ; } if ( is_dir ( __DIR__ . '/' . $ module . '/Views' ) ) { $ this -> loadViewsFrom ( __DIR__ . '/' . $ module . '/Views' , $ module ) ; } } }
Will make sure that the required modules have been fully loaded
 @return void routeModule
Will make sure that the required modules have been fully loaded @return void routeModule
// For each of the registered modules, include their routes and Views // Load the routes for each of the modules //$this->loadViewsFrom(realpath(__DIR__.'/'.$module.'/Views'), 'modules');