public function register()
    {
        foreach (array_keys(config('modules.locations')) as $location) {
            $repository = $this->repository($location);
            $modules    = $repository->enabled();

            $modules->each(function ($module) use ($repository) {
                try {
                    $this->registerServiceProvider($repository, $module);

                    $this->autoloadFiles($module);
                } catch (ModuleNotFoundException $e) {
                    //
                }
            });
        }
    }
public function register()
    {
        foreach (array_keys(config('modules.locations')) as $location) {
            $repository = $this->repository($location);
            $modules    = $repository->enabled();

            $modules->each(function ($module) use ($repository) {
                try {
                    $this->registerServiceProvider($repository, $module);

                    $this->autoloadFiles($module);
                } catch (ModuleNotFoundException $e) {
                    //
                }
            });
        }
    }
public function register ( ) { foreach ( array_keys ( config ( 'modules.locations' ) ) as $ location ) { $ repository = $ this -> repository ( $ location ) ; $ modules = $ repository -> enabled ( ) ; $ modules -> each ( function ( $ module ) use ( $ repository ) { try { $ this -> registerServiceProvider ( $ repository , $ module ) ; $ this -> autoloadFiles ( $ module ) ; } catch ( ModuleNotFoundException $ e ) { // } } ) ; } }
Register the module service provider file from all modules.

@return void
Register the module service provider file from all modules .