/** * Register the module service provider file from all modules. * * @return void */ public function register() { $modules = $this->repository->enabled(); $modules->each(function ($module) { $this->registerServiceProvider($module); $this->autoloadFiles($module); }); }
/** * Disables the specified module. * * @param string $slug * * @return bool */ public function disable($slug) { return $this->repository->disable($slug); }